Skip to content

dissociate_access_grants_identity_center

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

Dissociates the Amazon Web Services IAM Identity Center instance from the S3 Access Grants instance.

If your IAM Identity Center instance uses the simplified experience for trusted identity propagation, you can dissociate it. Your grants that use IAM Identity Center user and group IDs keep working. Grants with an application ARN stop giving access. To keep access for those users, create grants without an application ARN. Before you dissociate, confirm that your users can still access their data.

Permissions

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

Additional Permissions

You must have the sso:DeleteApplication permission to use this operation.

Parameters:

  • account_id (AccountId) –

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

Raises:

Source code in docs_src/capo_s3_control/_services/s3_control.py
def dissociate_access_grants_identity_center(
    self,
    account_id: "capo_s3_control.types.account_id.AccountId",
    *,
    config_overrides: Optional[S3ControlClientConfig] = None,
) -> None:
    """<p>Dissociates the Amazon Web Services IAM Identity Center instance from the S3 Access Grants instance. </p> <p>If your IAM Identity Center instance uses the simplified experience for trusted identity propagation, you can dissociate it. Your grants that use IAM Identity Center user and group IDs keep working. Grants with an application ARN stop giving access. To keep access for those users, create grants without an application ARN. Before you dissociate, confirm that your users can still access their data.</p> <dl> <dt>Permissions</dt> <dd> <p>You must have the <code>s3:DissociateAccessGrantsIdentityCenter</code> permission to use this operation. </p> </dd> <dt>Additional Permissions</dt> <dd> <p>You must have the <code>sso:DeleteApplication</code> permission to use this operation. </p> </dd> </dl>

    Args:
        account_id: <p>The Amazon Web Services account ID of the S3 Access Grants instance.</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.dissociate_access_grants_identity_center_request.DissociateAccessGrantsIdentityCenterRequest]",
    ) -> OperationResponse[None]:
        import capo_s3_control._operations.awss3_control_service_v20180820.dissociate_access_grants_identity_center

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DissociateAccessGrantsIdentityCenter")
    )
    input_: capo_s3_control.types.dissociate_access_grants_identity_center_request.DissociateAccessGrantsIdentityCenterRequest = {
        "account_id": account_id
    }

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