ControlTowerClient#
Index > ControlTower > ControlTowerClient
Auto-generated documentation for ControlTower type annotations stubs module mypy-boto3-controltower.
ControlTowerClient#
Type annotations and code completion for boto3.client("controltower")
.
boto3 documentation
# ControlTowerClient usage example
from boto3.session import Session
from mypy_boto3_controltower.client import ControlTowerClient
def get_controltower_client() -> ControlTowerClient:
return Session().client("controltower")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("controltower").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("controltower")
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.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_controltower.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("controltower").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("controltower").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_landing_zone#
Creates a new landing zone.
Type annotations and code completion for boto3.client("controltower").create_landing_zone
method.
boto3 documentation
# create_landing_zone method definition
def create_landing_zone(
self,
*,
manifest: Mapping[str, Any],
version: str,
tags: Mapping[str, str] = ...,
) -> CreateLandingZoneOutputTypeDef: # (1)
...
# create_landing_zone method usage example with argument unpacking
kwargs: CreateLandingZoneInputRequestTypeDef = { # (1)
"manifest": ...,
"version": ...,
}
parent.create_landing_zone(**kwargs)
delete_landing_zone#
Decommissions a landing zone.
Type annotations and code completion for boto3.client("controltower").delete_landing_zone
method.
boto3 documentation
# delete_landing_zone method definition
def delete_landing_zone(
self,
*,
landingZoneIdentifier: str,
) -> DeleteLandingZoneOutputTypeDef: # (1)
...
# delete_landing_zone method usage example with argument unpacking
kwargs: DeleteLandingZoneInputRequestTypeDef = { # (1)
"landingZoneIdentifier": ...,
}
parent.delete_landing_zone(**kwargs)
disable_baseline#
Disable an EnabledBaseline
resource on the specified Target.
Type annotations and code completion for boto3.client("controltower").disable_baseline
method.
boto3 documentation
# disable_baseline method definition
def disable_baseline(
self,
*,
enabledBaselineIdentifier: str,
) -> DisableBaselineOutputTypeDef: # (1)
...
# disable_baseline method usage example with argument unpacking
kwargs: DisableBaselineInputRequestTypeDef = { # (1)
"enabledBaselineIdentifier": ...,
}
parent.disable_baseline(**kwargs)
disable_control#
This API call turns off a control.
Type annotations and code completion for boto3.client("controltower").disable_control
method.
boto3 documentation
# disable_control method definition
def disable_control(
self,
*,
controlIdentifier: str,
targetIdentifier: str,
) -> DisableControlOutputTypeDef: # (1)
...
# disable_control method usage example with argument unpacking
kwargs: DisableControlInputRequestTypeDef = { # (1)
"controlIdentifier": ...,
"targetIdentifier": ...,
}
parent.disable_control(**kwargs)
enable_baseline#
Enable (apply) a Baseline
to a Target.
Type annotations and code completion for boto3.client("controltower").enable_baseline
method.
boto3 documentation
# enable_baseline method definition
def enable_baseline(
self,
*,
baselineIdentifier: str,
baselineVersion: str,
targetIdentifier: str,
parameters: Sequence[EnabledBaselineParameterTypeDef] = ..., # (1)
tags: Mapping[str, str] = ...,
) -> EnableBaselineOutputTypeDef: # (2)
...
# enable_baseline method usage example with argument unpacking
kwargs: EnableBaselineInputRequestTypeDef = { # (1)
"baselineIdentifier": ...,
"baselineVersion": ...,
"targetIdentifier": ...,
}
parent.enable_baseline(**kwargs)
enable_control#
This API call activates a control.
Type annotations and code completion for boto3.client("controltower").enable_control
method.
boto3 documentation
# enable_control method definition
def enable_control(
self,
*,
controlIdentifier: str,
targetIdentifier: str,
parameters: Sequence[EnabledControlParameterTypeDef] = ..., # (1)
tags: Mapping[str, str] = ...,
) -> EnableControlOutputTypeDef: # (2)
...