SSOAdminClient#
Auto-generated documentation for SSOAdmin type annotations stubs module mypy-boto3-sso-admin.
SSOAdminClient#
Type annotations and code completion for boto3.client("sso-admin")
.
boto3 documentation
# SSOAdminClient usage example
from boto3.session import Session
from mypy_boto3_sso_admin.client import SSOAdminClient
def get_sso-admin_client() -> SSOAdminClient:
return Session().client("sso-admin")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("sso-admin").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("sso-admin")
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_sso_admin.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
attach_customer_managed_policy_reference_to_permission_set#
Attaches the specified customer managed policy to the specified PermissionSet.
Type annotations and code completion for boto3.client("sso-admin").attach_customer_managed_policy_reference_to_permission_set
method.
boto3 documentation
# attach_customer_managed_policy_reference_to_permission_set method definition
def attach_customer_managed_policy_reference_to_permission_set(
self,
*,
CustomerManagedPolicyReference: CustomerManagedPolicyReferenceTypeDef, # (1)
InstanceArn: str,
PermissionSetArn: str,
) -> Dict[str, Any]:
...
# attach_customer_managed_policy_reference_to_permission_set method usage example with argument unpacking
kwargs: AttachCustomerManagedPolicyReferenceToPermissionSetRequestRequestTypeDef = { # (1)
"CustomerManagedPolicyReference": ...,
"InstanceArn": ...,
"PermissionSetArn": ...,
}
parent.attach_customer_managed_policy_reference_to_permission_set(**kwargs)
attach_managed_policy_to_permission_set#
Attaches an Amazon Web Services managed policy ARN to a permission set.
Type annotations and code completion for boto3.client("sso-admin").attach_managed_policy_to_permission_set
method.
boto3 documentation
# attach_managed_policy_to_permission_set method definition
def attach_managed_policy_to_permission_set(
self,
*,
InstanceArn: str,
ManagedPolicyArn: str,
PermissionSetArn: str,
) -> Dict[str, Any]:
...
# attac