Skip to content

create_id_mapping_table async

create_id_mapping_table(
    membership_identifier: MembershipIdentifier,
    name: ResourceAlias,
    input_reference_config: IdMappingTableInputReferenceConfig,
    *,
    config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
    description: Optional[ResourceDescription] = None,
    tags: Optional[TagMap] = None,
    kms_key_arn: Optional[KMSKeyArn] = None,
) -> CreateIdMappingTableOutput

Creates an ID mapping table.

Parameters:

  • membership_identifier (MembershipIdentifier) –

    The unique identifier of the membership that contains the ID mapping table.

  • name (ResourceAlias) –

    A name for the ID mapping table.

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

    A description of the ID mapping table.

  • input_reference_config (IdMappingTableInputReferenceConfig) –

    The input reference configuration needed to create the ID mapping 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.

  • kms_key_arn (Optional[KMSKeyArn], default: None ) –

    The Amazon Resource Name (ARN) of the Amazon Web Services KMS key. This value is used to encrypt the mapping table data that is stored by Clean Rooms.

Raises:

Source code in docs_src/capo_cleanrooms/_services/async_clean_rooms.py
async def create_id_mapping_table(
    self,
    membership_identifier: "capo_cleanrooms.types.membership_identifier.MembershipIdentifier",
    name: "capo_cleanrooms.types.resource_alias.ResourceAlias",
    input_reference_config: "capo_cleanrooms.types.id_mapping_table_input_reference_config.IdMappingTableInputReferenceConfig",
    *,
    config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
    description: Optional[
        "capo_cleanrooms.types.resource_description.ResourceDescription"
    ] = None,
    tags: Optional["capo_cleanrooms.types.tag_map.TagMap"] = None,
    kms_key_arn: Optional["capo_cleanrooms.types.kms_key_arn.KMSKeyArn"] = None,
) -> "capo_cleanrooms.types.create_id_mapping_table_output.CreateIdMappingTableOutput":
    """<p>Creates an ID mapping table.</p>

    Args:
        membership_identifier: <p>The unique identifier of the membership that contains the ID mapping table.</p>
        name: <p>A name for the ID mapping table.</p>
        description: <p>A description of the ID mapping table.</p>
        input_reference_config: <p>The input reference configuration needed to create the ID mapping 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>
        kms_key_arn: <p>The Amazon Resource Name (ARN) of the Amazon Web Services KMS key. This value is used to encrypt the mapping table data that is stored by Clean Rooms.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cleanrooms.types.create_id_mapping_table_input.CreateIdMappingTableInput]",
    ) -> AsyncOperationResponse[
        "capo_cleanrooms.types.create_id_mapping_table_output.CreateIdMappingTableOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.create_id_mapping_table

        (
            output,
            http_response,
        ) = await capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.create_id_mapping_table.async_create_id_mapping_table(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateIdMappingTable")
    )
    input_: capo_cleanrooms.types.create_id_mapping_table_input.CreateIdMappingTableInput = {
        "membership_identifier": membership_identifier,
        "name": name,
        "input_reference_config": input_reference_config,
    }
    if description is not None:
        input_["description"] = description
    if tags is not None:
        input_["tags"] = tags
    if kms_key_arn is not None:
        input_["kms_key_arn"] = kms_key_arn

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output