Skip to content

create_configured_table_association

create_configured_table_association(
    name: TableAlias,
    membership_identifier: MembershipIdentifier,
    configured_table_identifier: ConfiguredTableIdentifier,
    role_arn: RoleArn,
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
    description: Optional[TableDescription] = None,
    tags: Optional[TagMap] = None,
) -> CreateConfiguredTableAssociationOutput

Creates a configured table association. A configured table association links a configured table with a collaboration.

Parameters:

  • name (TableAlias) –

    The name of the configured table association. This name is used to query the underlying configured table.

  • description (Optional[TableDescription], default: None ) –

    A description for the configured table association.

  • membership_identifier (MembershipIdentifier) –

    A unique identifier for one of your memberships for a collaboration. The configured table is associated to the collaboration that this membership belongs to. Currently accepts a membership ID.

  • configured_table_identifier (ConfiguredTableIdentifier) –

    A unique identifier for the configured table to be associated to. Currently accepts a configured table ID.

  • role_arn (RoleArn) –

    The service will assume this role to access catalog metadata and query the table.

  • tags (Optional[TagMap], default: None ) –

    An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.

Raises:

Source code in docs_src/capo_cleanrooms/_services/clean_rooms.py
def create_configured_table_association(
    self,
    name: "capo_cleanrooms.types.table_alias.TableAlias",
    membership_identifier: "capo_cleanrooms.types.membership_identifier.MembershipIdentifier",
    configured_table_identifier: "capo_cleanrooms.types.configured_table_identifier.ConfiguredTableIdentifier",
    role_arn: "capo_cleanrooms.types.role_arn.RoleArn",
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
    description: Optional[
        "capo_cleanrooms.types.table_description.TableDescription"
    ] = None,
    tags: Optional["capo_cleanrooms.types.tag_map.TagMap"] = None,
) -> "capo_cleanrooms.types.create_configured_table_association_output.CreateConfiguredTableAssociationOutput":
    """<p>Creates a configured table association. A configured table association links a configured table with a collaboration.</p>

    Args:
        name: <p>The name of the configured table association. This name is used to query the underlying configured table.</p>
        description: <p>A description for the configured table association.</p>
        membership_identifier: <p>A unique identifier for one of your memberships for a collaboration. The configured table is associated to the collaboration that this membership belongs to. Currently accepts a membership ID.</p>
        configured_table_identifier: <p>A unique identifier for the configured table to be associated to. Currently accepts a configured table ID.</p>
        role_arn: <p>The service will assume this role to access catalog metadata and query the table.</p>
        tags: <p>An optional label that you can assign to a resource when you create it. Each tag consists of a key and an optional value, both of which you define. When you use tagging, you can also use tag-based access control in IAM policies to control access to this resource.</p>

    Raises:
        capo_cleanrooms.errors.access_denied_exception.AccessDeniedException: <p>Caller does not have sufficient access to perform this action.</p>
        capo_cleanrooms.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_cleanrooms.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_cleanrooms.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_cleanrooms.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Request denied because service quota has been exceeded.</p>
        capo_cleanrooms.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_cleanrooms.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
        capo_cleanrooms.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cleanrooms.types.create_configured_table_association_input.CreateConfiguredTableAssociationInput]",
    ) -> OperationResponse[
        "capo_cleanrooms.types.create_configured_table_association_output.CreateConfiguredTableAssociationOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.create_configured_table_association

        output, http_response = (
            capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.create_configured_table_association.create_configured_table_association(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateConfiguredTableAssociation")
    )
    input_: capo_cleanrooms.types.create_configured_table_association_input.CreateConfiguredTableAssociationInput = {
        "name": name,
        "membership_identifier": membership_identifier,
        "configured_table_identifier": configured_table_identifier,
        "role_arn": role_arn,
    }
    if description is not None:
        input_["description"] = description
    if tags is not None:
        input_["tags"] = tags

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