create_access_grants_instance
¶
create_access_grants_instance(
account_id: AccountId,
*,
config_overrides: Optional[S3ControlClientConfig] = None,
identity_center_arn: Optional[IdentityCenterArn] = None,
tags: Optional[TagList] = None,
) -> CreateAccessGrantsInstanceResult
Creates an S3 Access Grants instance, which serves as a logical grouping for access grants. You can create one S3 Access Grants instance per Region per account.
- Permissions
-
You must have the
s3:CreateAccessGrantsInstancepermission to use this operation. - Additional Permissions
-
To associate an IAM Identity Center instance with your S3 Access Grants instance, you must also have the
sso:DescribeInstance,sso:CreateApplication,sso:PutApplicationGrant, andsso:PutApplicationAuthenticationMethodpermissions.
Parameters:
-
account_id(AccountId) –The Amazon Web Services account ID of the S3 Access Grants instance.
-
identity_center_arn(Optional[IdentityCenterArn], default:None) –The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center instance that you are associating with your S3 Access Grants instance. Pass this field only if your IAM Identity Center instance uses the legacy experience. IAM Identity Center instances, including new ones, use the legacy experience until you turn on the simplified experience for trusted identity propagation. Instances that use the simplified experience don't need an association. Neither do users who sign in through IAM federation. An IAM Identity Center instance is your corporate identity directory that you added to the IAM Identity Center. You can use the ListInstances API operation to retrieve a list of your Identity Center instances and their ARNs.
-
tags(Optional[TagList], default:None) –The Amazon Web Services resource tags that you are adding to the S3 Access Grants instance. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.