Skip to content

MQClient

Index > MQ > MQClient

Auto-generated documentation for MQ type annotations stubs module types-aiobotocore-mq.

MQClient

Type annotations and code completion for session.client("mq") boto3 documentation

Usage example
from aioboto3.session import Session
from types_aiobotocore_mq.client import MQClient

session = Session()
async with session.client("mq") as client:
    client: MQClient

Exceptions

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("mq").exceptions structure.

Usage example
async with session.client("mq") as client:
    try:
        do_something(client)
    except (
            client.BadRequestException,
        client.ClientError,
        client.ConflictException,
        client.ForbiddenException,
        client.InternalServerErrorException,
        client.NotFoundException,
        client.UnauthorizedException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_mq.client import Exceptions

def handle_error(exc: Exceptions.BadRequestException) -> None:
    ...

Methods

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for session.client("mq").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for session.client("mq").close method. boto3 documentation

Method definition
await def close(
    self,
) -> None:
    ...

create_broker

Creates a broker.

Type annotations and code completion for session.client("mq").create_broker method. boto3 documentation

Method definition
await def create_broker(
    self,
    *,
    AutoMinorVersionUpgrade: bool,
    BrokerName: str,
    DeploymentMode: DeploymentModeType,  # (1)
    EngineType: EngineTypeType,  # (2)
    EngineVersion: str,
    HostInstanceType: str,
    PubliclyAccessible: bool,
    Users: Sequence[UserTypeDef],  # (3)
    AuthenticationStrategy: AuthenticationStrategyType = ...,  # (4)
    Configuration: ConfigurationIdTypeDef = ...,  # (5)
    CreatorRequestId: str = ...,
    EncryptionOptions: EncryptionOptionsTypeDef = ...,  # (6)
    LdapServerMetadata: LdapServerMetadataInputTypeDef = ...,  # (7)
    Logs: LogsTypeDef = ...,  # (8)
    MaintenanceWindowStartTime: WeeklyStartTimeTypeDef = ...,  # (9)
    SecurityGroups: Sequence[str] = ...,
    StorageType: BrokerStorageTypeType = ...,  # (10)
    SubnetIds: Sequence[str] = ...,
    Tags: Mapping[str, str] = ...,
) -> CreateBrokerResponseTypeDef:  # (11)
    ...
  1. See DeploymentModeType
  2. See EngineTypeType
  3. See UserTypeDef
  4. See AuthenticationStrategyType
  5. See ConfigurationIdTypeDef
  6. See EncryptionOptionsTypeDef
  7. See LdapServerMetadataInputTypeDef
  8. See LogsTypeDef
  9. See WeeklyStartTimeTypeDef
  10. See BrokerStorageTypeType
  11. See CreateBrokerResponseTypeDef
Usage example with kwargs
kwargs: CreateBrokerRequestRequestTypeDef = {  # (1)
    "AutoMinorVersionUpgrade": ...,
    "BrokerName": ...,
    "DeploymentMode": ...,
    "EngineType": ...,
    "EngineVersion": ...,
    "HostInstanceType": ...,
    "PubliclyAccessible": ...,
    "Users": ...,
}

parent.create_broker(**kwargs)
  1. See CreateBrokerRequestRequestTypeDef

create_configuration

Creates a new configuration for the specified configuration name.

Type annotations and code completion for session.client("mq").create_configuration method. boto3 documentation

Method definition
await def create_configuration(
    self,
    *,
    EngineType: EngineTypeType,  # (1)
    EngineVersion: str,
    Name: str,
    AuthenticationStrategy: AuthenticationStrategyType = ...,  # (2)
    Tags: Mapping[str, str] = ...,
) -> CreateConfigurationResponseTypeDef:  # (3)
    ...
  1. See EngineTypeType
  2. See AuthenticationStrategyType
  3. See CreateConfigurationResponseTypeDef
Usage example with kwargs
kwargs: CreateConfigurationRequestRequestTypeDef = {  # (1)
    "EngineType": ...,
    "EngineVersion": ...,
    "Name": ...,
}

parent.create_configuration(**kwargs)
  1. See CreateConfigurationRequestRequestTypeDef

create_tags

Add a tag to a resource.

Type annotations and code completion for session.client("mq").create_tags method. boto3 documentation

Method definition
await def create_tags(
    self,
    *,
    ResourceArn: str,
    Tags: Mapping[str, str] = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: CreateTagsRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.create_tags(**kwargs)
  1. See CreateTagsRequestRequestTypeDef

create_user

Creates an ActiveMQ user.

Type annotations and code completion for session.client("mq").create_user method. boto3 documentation

Method definition
await def create_user(
    self,
    *,
    BrokerId: str,
    Password: str,
    Username: str,
    ConsoleAccess: bool = ...,
    Groups: Sequence[str] = ...,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: CreateUserRequestRequestTypeDef = {  # (1)
    "BrokerId": ...,
    "Password": ...,
    "Username": ...,
}

parent.create_user(**kwargs)
  1. See CreateUserRequestRequestTypeDef

delete_broker

Deletes a broker.

Type annotations and code completion for session.client("mq").delete_broker method. boto3 documentation

Method definition
await def delete_broker(
    self,
    *,
    BrokerId: str,
) -> DeleteBrokerResponseTypeDef:  # (1)
    ...
  1. See DeleteBrokerResponseTypeDef
Usage example with kwargs
kwargs: DeleteBrokerRequestRequestTypeDef = {  # (1)
    "BrokerId": ...,
}

parent.delete_broker(**kwargs)
  1. See DeleteBrokerRequestRequestTypeDef

delete_tags

Removes a tag from a resource.

Type annotations and code completion for session.client("mq").delete_tags method. boto3 documentation

Method definition
await def delete_tags(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteTagsRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}

parent.delete_tags(**kwargs)
  1. See DeleteTagsRequestRequestTypeDef

delete_user

Deletes an ActiveMQ user.

Type annotations and code completion for session.client("mq").delete_user method. boto3 documentation

Method definition
await def delete_user(
    self,
    *,
    BrokerId: str,
    Username: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteUserRequestRequestTypeDef = {  # (1)
    "BrokerId": ...,
    "Username": ...,
}

parent.delete_user(**kwargs)
  1. See DeleteUserRequestRequestTypeDef

describe_broker

Returns information about the specified broker.

Type annotations and code completion for session.client("mq").describe_broker method. boto3 documentation

Method definition
await def describe_broker(
    self,
    *,
    BrokerId: str,
) -> DescribeBrokerResponseTypeDef:  # (1)
    ...
  1. See DescribeBrokerResponseTypeDef
Usage example with kwargs
kwargs: DescribeBrokerRequestRequestTypeDef = {  # (1)
    "BrokerId": ...,
}

parent.describe_broker(**kwargs)
  1. See DescribeBrokerRequestRequestTypeDef

describe_broker_engine_types

Describe available engine types and versions.

Type annotations and code completion for session.client("mq").describe_broker_engine_types method. boto3 documentation

Method definition
await def describe_broker_engine_types(
    self,
    *,
    EngineType: str = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeBrokerEngineTypesResponseTypeDef:  # (1)
    ...
  1. See DescribeBrokerEngineTypesResponseTypeDef
Usage example with kwargs
kwargs: DescribeBrokerEngineTypesRequestRequestTypeDef = {  # (1)
    "EngineType": ...,
}

parent.describe_broker_engine_types(**kwargs)
  1. See DescribeBrokerEngineTypesRequestRequestTypeDef

describe_broker_instance_options

Describe available broker instance options.

Type annotations and code completion for session.client("mq").describe_broker_instance_options method. boto3 documentation

Method definition
await def describe_broker_instance_options(
    self,
    *,
    EngineType: str = ...,
    HostInstanceType: str = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    StorageType: str = ...,
) -> DescribeBrokerInstanceOptionsResponseTypeDef:  # (1)
    ...
  1. See DescribeBrokerInstanceOptionsResponseTypeDef
Usage example with kwargs
kwargs: DescribeBrokerInstanceOptionsRequestRequestTypeDef = {  # (1)
    "EngineType": ...,
}

parent.describe_broker_instance_options(**kwargs)
  1. See DescribeBrokerInstanceOptionsRequestRequestTypeDef

describe_configuration

Returns information about the specified configuration.

Type annotations and code completion for session.client("mq").describe_configuration method. boto3 documentation

Method definition
await def describe_configuration(
    self,
    *,
    ConfigurationId: str,
) -> DescribeConfigurationResponseTypeDef:  # (1)
    ...
  1. See DescribeConfigurationResponseTypeDef
Usage example with kwargs
kwargs: DescribeConfigurationRequestRequestTypeDef = {  # (1)
    "ConfigurationId": ...,
}

parent.describe_configuration(**kwargs)
  1. See DescribeConfigurationRequestRequestTypeDef

describe_configuration_revision

Returns the specified configuration revision for the specified configuration.

Type annotations and code completion for session.client("mq").describe_configuration_revision method. boto3 documentation

Method definition
await def describe_configuration_revision(
    self,
    *,
    ConfigurationId: str,
    ConfigurationRevision: str,
) -> DescribeConfigurationRevisionResponseTypeDef:  # (1)
    ...
  1. See DescribeConfigurationRevisionResponseTypeDef
Usage example with kwargs
kwargs: DescribeConfigurationRevisionRequestRequestTypeDef = {  # (1)
    "ConfigurationId": ...,
    "ConfigurationRevision": ...,
}

parent.describe_configuration_revision(**kwargs)
  1. See DescribeConfigurationRevisionRequestRequestTypeDef

describe_user

Returns information about an ActiveMQ user.

Type annotations and code completion for session.client("mq").describe_user method. boto3 documentation

Method definition
await def describe_user(
    self,
    *,
    BrokerId: str,
    Username: str,
) -> DescribeUserResponseTypeDef:  # (1)
    ...
  1. See DescribeUserResponseTypeDef
Usage example with kwargs
kwargs: DescribeUserRequestRequestTypeDef = {  # (1)
    "BrokerId": ...,
    "Username": ...,
}

parent.describe_user(**kwargs)
  1. See DescribeUserRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.client("mq").generate_presigned_url method. boto3 documentation

Method definition
await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

list_brokers

Returns a list of all brokers.

Type annotations and code completion for session.client("mq").list_brokers method. boto3 documentation

Method definition
await def list_brokers(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListBrokersResponseTypeDef:  # (1)
    ...
  1. See ListBrokersResponseTypeDef
Usage example with kwargs
kwargs: ListBrokersRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_brokers(**kwargs)
  1. See ListBrokersRequestRequestTypeDef

list_configuration_revisions

Returns a list of all revisions for the specified configuration.

Type annotations and code completion for session.client("mq").list_configuration_revisions method. boto3 documentation

Method definition
await def list_configuration_revisions(
    self,
    *,
    ConfigurationId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListConfigurationRevisionsResponseTypeDef:  # (1)
    ...
  1. See ListConfigurationRevisionsResponseTypeDef
Usage example with kwargs
kwargs: ListConfigurationRevisionsRequestRequestTypeDef = {  # (1)
    "ConfigurationId": ...,
}

parent.list_configuration_revisions(**kwargs)
  1. See ListConfigurationRevisionsRequestRequestTypeDef

list_configurations

Returns a list of all configurations.

Type annotations and code completion for session.client("mq").list_configurations method. boto3 documentation

Method definition
await def list_configurations(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListConfigurationsResponseTypeDef:  # (1)
    ...
  1. See ListConfigurationsResponseTypeDef
Usage example with kwargs
kwargs: ListConfigurationsRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_configurations(**kwargs)
  1. See ListConfigurationsRequestRequestTypeDef

list_tags

Lists tags for a resource.

Type annotations and code completion for session.client("mq").list_tags method. boto3 documentation

Method definition
await def list_tags(
    self,
    *,
    ResourceArn: str,
) -> ListTagsResponseTypeDef:  # (1)
    ...
  1. See ListTagsResponseTypeDef
Usage example with kwargs
kwargs: ListTagsRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_tags(**kwargs)
  1. See ListTagsRequestRequestTypeDef

list_users

Returns a list of all ActiveMQ users.

Type annotations and code completion for session.client("mq").list_users method. boto3 documentation

Method definition
await def list_users(
    self,
    *,
    BrokerId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListUsersResponseTypeDef:  # (1)
    ...
  1. See ListUsersResponseTypeDef
Usage example with kwargs
kwargs: ListUsersRequestRequestTypeDef = {  # (1)
    "BrokerId": ...,
}

parent.list_users(**kwargs)
  1. See ListUsersRequestRequestTypeDef

reboot_broker

Reboots a broker.

Type annotations and code completion for session.client("mq").reboot_broker method. boto3 documentation

Method definition
await def reboot_broker(
    self,
    *,
    BrokerId: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: RebootBrokerRequestRequestTypeDef = {  # (1)
    "BrokerId": ...,
}

parent.reboot_broker(**kwargs)
  1. See RebootBrokerRequestRequestTypeDef

update_broker

Adds a pending configuration change to a broker.

Type annotations and code completion for session.client("mq").update_broker method. boto3 documentation

Method definition
await def update_broker(
    self,
    *,
    BrokerId: str,
    AuthenticationStrategy: AuthenticationStrategyType = ...,  # (1)
    AutoMinorVersionUpgrade: bool = ...,
    Configuration: ConfigurationIdTypeDef = ...,  # (2)
    EngineVersion: str = ...,
    HostInstanceType: str = ...,
    LdapServerMetadata: LdapServerMetadataInputTypeDef = ...,  # (3)
    Logs: LogsTypeDef = ...,  # (4)
    MaintenanceWindowStartTime: WeeklyStartTimeTypeDef = ...,  # (5)
    SecurityGroups: Sequence[str] = ...,
) -> UpdateBrokerResponseTypeDef:  # (6)
    ...
  1. See AuthenticationStrategyType
  2. See ConfigurationIdTypeDef
  3. See LdapServerMetadataInputTypeDef
  4. See LogsTypeDef
  5. See WeeklyStartTimeTypeDef
  6. See UpdateBrokerResponseTypeDef
Usage example with kwargs
kwargs: UpdateBrokerRequestRequestTypeDef = {  # (1)
    "BrokerId": ...,
}

parent.update_broker(**kwargs)
  1. See UpdateBrokerRequestRequestTypeDef

update_configuration

Updates the specified configuration.

Type annotations and code completion for session.client("mq").update_configuration method. boto3 documentation

Method definition
await def update_configuration(
    self,
    *,
    ConfigurationId: str,
    Data: str,
    Description: str = ...,
) -> UpdateConfigurationResponseTypeDef:  # (1)
    ...
  1. See UpdateConfigurationResponseTypeDef
Usage example with kwargs
kwargs: UpdateConfigurationRequestRequestTypeDef = {  # (1)
    "ConfigurationId": ...,
    "Data": ...,
}

parent.update_configuration(**kwargs)
  1. See UpdateConfigurationRequestRequestTypeDef

update_user

Updates the information for an ActiveMQ user.

Type annotations and code completion for session.client("mq").update_user method. boto3 documentation

Method definition
await def update_user(
    self,
    *,
    BrokerId: str,
    Username: str,
    ConsoleAccess: bool = ...,
    Groups: Sequence[str] = ...,
    Password: str = ...,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UpdateUserRequestRequestTypeDef = {  # (1)
    "BrokerId": ...,
    "Username": ...,
}

parent.update_user(**kwargs)
  1. See UpdateUserRequestRequestTypeDef

__aenter__

Type annotations and code completion for session.client("mq").__aenter__ method. boto3 documentation

Method definition
await def __aenter__(
    self,
) -> MQClient:
    ...

__aexit__

Type annotations and code completion for session.client("mq").__aexit__ method. boto3 documentation

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator

Type annotations and code completion for session.client("mq").get_paginator method with overloads.