create_permission_set
¶
create_permission_set(
name: PermissionSetName,
instance_arn: InstanceArn,
*,
config_overrides: Optional[SSOAdminClientConfig] = None,
description: Optional[PermissionSetDescription] = None,
session_duration: Optional[Duration] = None,
relay_state: Optional[RelayState] = None,
tags: Optional[TagList] = None,
) -> CreatePermissionSetResponse
Creates a permission set within a specified IAM Identity Center instance.
To grant users and groups access to Amazon Web Services account resources, use CreateAccountAssignment .
Parameters:
-
name(PermissionSetName) –The name of the PermissionSet.
-
description(Optional[PermissionSetDescription], default:None) –The description of the PermissionSet.
-
instance_arn(InstanceArn) –The ARN of the IAM Identity Center instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.
-
session_duration(Optional[Duration], default:None) –The length of time that the application user sessions are valid in the ISO-8601 standard.
-
relay_state(Optional[RelayState], default:None) –Used to redirect users within the application during the federation authentication process.
-
tags(Optional[TagList], default:None) –The tags to attach to the new PermissionSet.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
-
InternalServerException–The request processing has failed because of an unknown error, exception, or failure with an internal server.
-
ResourceNotFoundException–Indicates that a requested resource is not found.
-
ServiceQuotaExceededException–Indicates that the principal has crossed the permitted number of resources that can be created.
-
ThrottlingException–Indicates that the principal has crossed the throttling limits of the API operations.
-
ValidationException–The request failed because it contains a syntax error.
-
UnknownServiceError–The service returned an error code this client does not model.