Skip to content

associate_access_grants_identity_center

associate_access_grants_identity_center(
    account_id: AccountId,
    identity_center_arn: IdentityCenterArn,
    *,
    config_overrides: Optional[S3ControlClientConfig] = None,
) -> None

Associate your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance. IAM Identity Center instances, including new ones, use the legacy experience until you turn on the simplified experience for trusted identity propagation. You need this association only if your instance uses the legacy experience. If your instance uses the simplified experience, or if your users sign in through IAM federation, you don't need an association.

Permissions

You must have the s3:AssociateAccessGrantsIdentityCenter permission to use this operation.

Additional Permissions

You must also have the following permissions: sso:CreateApplication, sso:PutApplicationGrant, and sso:PutApplicationAuthenticationMethod.

Parameters:

  • account_id (AccountId) –

    The Amazon Web Services account ID of the S3 Access Grants instance.

  • identity_center_arn (IdentityCenterArn) –

    The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center instance that you are associating with your S3 Access Grants instance. 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.

Raises:

Source code in docs_src/capo_s3_control/_services/s3_control.py
def associate_access_grants_identity_center(
    self,
    account_id: "capo_s3_control.types.account_id.AccountId",
    identity_center_arn: "capo_s3_control.types.identity_center_arn.IdentityCenterArn",
    *,
    config_overrides: Optional[S3ControlClientConfig] = None,
) -> None:
    """<p>Associate your S3 Access Grants instance with an Amazon Web Services IAM Identity Center instance. IAM Identity Center instances, including new ones, use the legacy experience until you turn on the <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/simplified-tip-overview.html">simplified experience for trusted identity propagation</a>. You need this association only if your instance uses the legacy experience. If your instance uses the simplified experience, or if your users sign in through IAM federation, you don't need an association.</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3:AssociateAccessGrantsIdentityCenter</code> permission to use this operation. </p> </dd> <dt>Additional Permissions</dt> <dd> <p>You must also have the following permissions: <code>sso:CreateApplication</code>, <code>sso:PutApplicationGrant</code>, and <code>sso:PutApplicationAuthenticationMethod</code>. </p> </dd> </dl>

    Args:
        account_id: <p>The Amazon Web Services account ID of the S3 Access Grants instance.</p>
        identity_center_arn: <p>The Amazon Resource Name (ARN) of the Amazon Web Services IAM Identity Center instance that you are associating with your S3 Access Grants instance. An IAM Identity Center instance is your corporate identity directory that you added to the IAM Identity Center. You can use the <a href="https://docs.aws.amazon.com/singlesignon/latest/APIReference/API_ListInstances.html">ListInstances</a> API operation to retrieve a list of your Identity Center instances and their ARNs.</p>

    Raises:
        capo_s3_control.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_s3_control.types.associate_access_grants_identity_center_request.AssociateAccessGrantsIdentityCenterRequest]",
    ) -> OperationResponse[None]:
        import capo_s3_control._operations.awss3_control_service_v20180820.associate_access_grants_identity_center

        output, http_response = (
            capo_s3_control._operations.awss3_control_service_v20180820.associate_access_grants_identity_center.associate_access_grants_identity_center(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("AssociateAccessGrantsIdentityCenter")
    )
    input_: capo_s3_control.types.associate_access_grants_identity_center_request.AssociateAccessGrantsIdentityCenterRequest = {
        "account_id": account_id,
        "identity_center_arn": identity_center_arn,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output