Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/aws-sdk-acm/src/aws_sdk_acm/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class AsyncACMClient(AsyncClient[AsyncACMConfig]):
Guide](https://docs.aws.amazon.com/acm/latest/userguide/).
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
async def add_tags_to_certificate(
Expand Down
2 changes: 1 addition & 1 deletion clients/aws-sdk-acm/src/aws_sdk_acm/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ACMClient(Client[ACMConfig]):
Guide](https://docs.aws.amazon.com/acm/latest/userguide/).
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
def add_tags_to_certificate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class AsyncAPIGatewayClient(AsyncClient[AsyncAPIGatewayConfig]):
outside of AWS.
"""

_client_plugins = (user_agent_plugin, accept_header_plugin, aws_user_agent_plugin)
_client_plugins = (accept_header_plugin, aws_user_agent_plugin, user_agent_plugin)

@_overload
async def create_api_key(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class APIGatewayClient(Client[APIGatewayConfig]):
outside of AWS.
"""

_client_plugins = (user_agent_plugin, accept_header_plugin, aws_user_agent_plugin)
_client_plugins = (accept_header_plugin, aws_user_agent_plugin, user_agent_plugin)

@_overload
def create_api_key(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class AsyncAppConfigDataClient(AsyncClient[AsyncAppConfigDataConfig]):
in the *AppConfig User Guide*.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
async def get_latest_configuration(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class AppConfigDataClient(Client[AppConfigDataConfig]):
in the *AppConfig User Guide*.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
def get_latest_configuration(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class AsyncBedrockAgentRuntimeClient(AsyncClient[AsyncBedrockAgentRuntimeConfig]
bases.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
async def agentic_retrieve_stream(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class BedrockAgentRuntimeClient(Client[BedrockAgentRuntimeConfig]):
bases.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
def check_ingested_document_acl(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class AsyncBedrockAgentClient(AsyncClient[AsyncBedrockAgentConfig]):
agents.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
async def associate_agent_collaborator(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class BedrockAgentClient(Client[BedrockAgentConfig]):
agents.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
def associate_agent_collaborator(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class AsyncBedrockAgentCoreControlClient(
Services resources.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
async def add_dataset_examples(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class BedrockAgentCoreControlClient(Client[BedrockAgentCoreControlConfig]):
Services resources.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
def add_dataset_examples(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class AsyncBedrockAgentCoreClient(AsyncClient[AsyncBedrockAgentCoreConfig]):
Services services.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
async def batch_create_memory_records(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class BedrockAgentCoreClient(Client[BedrockAgentCoreConfig]):
Services services.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
def batch_create_memory_records(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class AsyncBedrockDataAutomationRuntimeClient(
):
"""Amazon Bedrock Data Automation Runtime"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
async def get_data_automation_status(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
class BedrockDataAutomationRuntimeClient(Client[BedrockDataAutomationRuntimeConfig]):
"""Amazon Bedrock Data Automation Runtime"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
def get_data_automation_status(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
class AsyncBedrockDataAutomationClient(AsyncClient[AsyncBedrockDataAutomationConfig]):
"""Amazon Bedrock Data Automation BuildTime"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
async def copy_blueprint_stage(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
class BedrockDataAutomationClient(Client[BedrockDataAutomationConfig]):
"""Amazon Bedrock Data Automation BuildTime"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
def copy_blueprint_stage(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class AsyncBedrockRuntimeClient(AsyncClient[AsyncBedrockRuntimeConfig]):
models.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
async def apply_guardrail(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class BedrockRuntimeClient(Client[BedrockRuntimeConfig]):
models.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
def apply_guardrail(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class AsyncBedrockClient(AsyncClient[AsyncBedrockConfig]):
evaluating Amazon Bedrock models.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
async def batch_delete_advanced_prompt_optimization_job(
Expand Down
2 changes: 1 addition & 1 deletion clients/aws-sdk-bedrock/src/aws_sdk_bedrock/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class BedrockClient(Client[BedrockConfig]):
evaluating Amazon Bedrock models.
"""

_client_plugins = (user_agent_plugin, aws_user_agent_plugin)
_client_plugins = (aws_user_agent_plugin, user_agent_plugin)

@_overload
def batch_delete_advanced_prompt_optimization_job(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,31 @@ class RegistryType(UnknownEnumMixin, StrEnum):
MODULE = "MODULE"
HOOK = "HOOK"

@dataclass(kw_only=True)
class RemoveAliasInput(_SerdeShape):
"""The input for the RemoveAlias action."""

alias_name: str | None = ...
"""The alias name to remove."""

class RemoveAliasInputDict(TypedDict, total=False):
"""Dictionary form of `RemoveAliasInput`."""

alias_name: Required[str]
"""The alias name to remove."""

@dataclass(kw_only=True)
class RemoveAliasOutput(_SerdeShape):
"""Dataclass for RemoveAliasOutput 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.
"""

class Replacement(UnknownEnumMixin, StrEnum):
TRUE = "True"
FALSE = "False"
Expand Down Expand Up @@ -1089,6 +1114,57 @@ class ScanType(UnknownEnumMixin, StrEnum):
FULL = "FULL"
PARTIAL = "PARTIAL"

@dataclass(kw_only=True)
class SetAliasInput(_SerdeShape):
"""The input for the SetAlias action."""

stack_name: str | None = ...
"""The name or unique stack ID of the stack to assign an alias to."""
alias_name: str | None = ...
"""
The alias to assign to the stack. The alias can then be used in place of
the stack name in any API call that accepts `StackName`.

The name must be unique within the same account and Region. It cannot
match an existing stack name or another active alias.

Note:
An alias 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.
"""

class SetAliasInputDict(TypedDict, total=False):
"""Dictionary form of `SetAliasInput`."""

stack_name: Required[str]
"""The name or unique stack ID of the stack to assign an alias to."""
alias_name: Required[str]
"""
The alias to assign to the stack. The alias can then be used in place of
the stack name in any API call that accepts `StackName`.

The name must be unique within the same account and Region. It cannot
match an existing stack name or another active alias.

Note:
An alias 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.
"""

@dataclass(kw_only=True)
class SetAliasOutput(_SerdeShape):
"""Dataclass for SetAliasOutput 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 SetStackPolicyInput(_SerdeShape):
"""The input for the SetStackPolicy action."""
Expand Down Expand Up @@ -1545,6 +1621,12 @@ class Stack(_SerdeShape):
"""
last_operations: list[OperationEntry] | None = ...
"""Information about the most recent operations performed on this stack."""
alias_name: str | None = ...
"""
The alias assigned to the stack, if one has been set. An alias is an
alternative name that can be used in place of the stack name in any
CloudFormation API call that accepts the `StackName` parameter.
"""

@dataclass(kw_only=True)
class StackDefinition(_SerdeShape):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"AFTER_CONTEXT",
"AFTER_VALUE",
"AFTER_VALUE_FROM",
"ALIAS_NAME",
"ALLOWED_VALUE",
"ALLOWED_VALUES",
"ALREADY_EXISTS_EXCEPTION",
Expand Down Expand Up @@ -126,10 +127,9 @@
"RESOURCE_TYPE",
"CLIENT_TOKEN",
"RESOURCE_TYPES",
"LIMIT_EXCEEDED_EXCEPTION",
"STACK_POLICY_BODY",
"STACK_POLICY_URL",
"REGISTRY_TYPE",
"TYPE_VERSION_ID",
),
(
"SCOPE",
Expand Down Expand Up @@ -205,7 +205,6 @@
"CREATE_CHANGE_SET_OUTPUT",
"CREATE_CHANGE_SET",
"INSUFFICIENT_CAPABILITIES_EXCEPTION",
"LIMIT_EXCEEDED_EXCEPTION",
"CONCURRENT_RESOURCES_LIMIT_EXCEEDED_EXCEPTION",
"GENERATED_TEMPLATE_NAME",
"RESOURCE_DEFINITION",
Expand Down Expand Up @@ -299,6 +298,8 @@
"DELETE_STACK_SET_OUTPUT",
"DELETE_STACK_SET",
"STACK_SET_NOT_EMPTY_EXCEPTION",
"REGISTRY_TYPE",
"TYPE_VERSION_ID",
"DEREGISTER_TYPE_INPUT",
"DEREGISTER_TYPE_OUTPUT",
"DEREGISTER_TYPE",
Expand Down Expand Up @@ -331,6 +332,7 @@
"VALIDATION_NAME",
"VALIDATION_PATH",
"VALIDATION_STATUS",
"VALIDATION_STATUS_REASON",
"TEMPLATE_STATUS_REASON",
"HOOK_INVOCATION_ID",
"REASON",
Expand All @@ -343,7 +345,6 @@
"MAX_RESULTS",
),
(
"VALIDATION_STATUS_REASON",
"OPERATION_EVENT",
"OPERATION_EVENTS",
"DESCRIBE_GENERATED_TEMPLATE_INPUT",
Expand Down Expand Up @@ -694,10 +695,10 @@
"LIST_TYPE_REGISTRATIONS_OUTPUT",
"LIST_TYPE_REGISTRATIONS",
"REGISTRATION_TOKEN_LIST",
),
(
"TYPE_NAME_PREFIX",
"TYPE_FILTERS",
),
(
"LIST_TYPES_INPUT",
"LIST_TYPES_OUTPUT",
"LIST_TYPES",
Expand Down Expand Up @@ -730,9 +731,15 @@
"REGISTER_TYPE_INPUT",
"REGISTER_TYPE_OUTPUT",
"REGISTER_TYPE",
"REMOVE_ALIAS_INPUT",
"REMOVE_ALIAS_OUTPUT",
"REMOVE_ALIAS",
"ROLLBACK_STACK_INPUT",
"ROLLBACK_STACK_OUTPUT",
"ROLLBACK_STACK",
"SET_ALIAS_INPUT",
"SET_ALIAS_OUTPUT",
"SET_ALIAS",
"SET_STACK_POLICY_INPUT",
"SET_STACK_POLICY_OUTPUT",
"SET_STACK_POLICY",
Expand Down
Loading
Loading