DrsClient#
Auto-generated documentation for Drs type annotations stubs module mypy-boto3-drs.
DrsClient#
Type annotations and code completion for boto3.client("drs")
.
boto3 documentation
# DrsClient usage example
from boto3.session import Session
from mypy_boto3_drs.client import DrsClient
def get_drs_client() -> DrsClient:
return Session().client("drs")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("drs").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("drs")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.UninitializedAccountException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_drs.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
associate_source_network_stack#
Associate a Source Network to an existing CloudFormation Stack and modify launch templates to use this network.
Type annotations and code completion for boto3.client("drs").associate_source_network_stack
method.
boto3 documentation
# associate_source_network_stack method definition
def associate_source_network_stack(
self,
*,
cfnStackName: str,
sourceNetworkID: str,
) -> AssociateSourceNetworkStackResponseTypeDef: # (1)
...
# associate_source_network_stack method usage example with argument unpacking
kwargs: AssociateSourceNetworkStackRequestRequestTypeDef = { # (1)
"cfnStackName": ...,
"sourceNetworkID": ...,
}
parent.associate_source_network_stack(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("drs").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("drs").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_extended_source_server#
Create an extended source server in the target Account based on the source server in staging account.
Type annotations and code completion for boto3.client("drs").create_extended_source_server
method.
boto3 documentation
# create_extended_source_server method definition
def create_extended_source_server(
self,
*,
sourceServerArn: str,
tags: Mapping[str, str] = ...,
) -> CreateExtendedSourceServerResponseTypeDef: # (1)
...
# create_extended_source_server method usage example with argument unpacking
kwargs: CreateExtendedSourceServerRequestRequestTypeDef = { # (1)
"sourceServerArn": ...,
}
parent.create_extended_source_server(**kwargs)
create_launch_configuration_template#
Creates a new Launch Configuration Template.
Type annotations and code completion for boto3.client("drs").create_launch_configuration_template
method.
boto3 documentation
# create_launch_configuration_template method definition
def create_launch_configuration_template(
self,
*,
copyPrivateIp: bool = ...,
copyTags: bool = ...,
exportBucketArn: str = ...,
launchDisposition: LaunchDispositionType = ..., # (1)
launchIntoSourceInstance: bool = ...,
licensing: LicensingTypeDef = ..., # (2)
postLaunchEnabled: bool = ...,
tags: Mapping[str, str] = ...,
targetInstanceTypeRightSizingMethod: TargetInstanceTypeRightSizingMethodType = ..., # (3)
) -> CreateLaunchConfigurationTemplateResponseTypeDef: # (4)
...
- See LaunchDispositionType
- See LicensingTypeDef
- See TargetInstanceTypeRightSizingMethodType
- See CreateLaunchConfigurationTemplateResponseTypeDef
# create_launch_configuration_template method usage example with argument unpacking
kwargs: CreateLaunchConfigurationTemplateRequestRequestTypeDef = { # (1)
"copyPrivateIp": ...,
}
parent.create_launch_configuration_template(**kwargs)
create_replication_configuration_template#
Creates a new ReplicationConfigurationTemplate.
Type annotations and code completion for boto3.client("drs").create_replication_configuration_template
method.