Skip to content

create_app_bundle async

create_app_bundle(
    *,
    config_overrides: Optional[AsyncAppFabricClientConfig] = None,
    client_token: Optional[UUID] = None,
    customer_managed_key_identifier: Optional[Identifier] = None,
    tags: Optional[TagList] = None,
) -> CreateAppBundleResponse

Creates an app bundle to collect data from an application using AppFabric.

Parameters:

  • client_token (Optional[UUID], default: None ) –

    Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.

    If you don't provide this value, then Amazon Web Services generates a random one for you.

    If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.

  • customer_managed_key_identifier (Optional[Identifier], default: None ) –

    The Amazon Resource Name (ARN) of the Key Management Service (KMS) key to use to encrypt the application data. If this is not specified, an Amazon Web Services owned key is used for encryption.

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

    A map of the key-value pairs of the tag or tags to assign to the resource.

Raises:

Source code in docs_src/capo_appfabric/_services/async_app_fabric.py
async def create_app_bundle(
    self,
    *,
    config_overrides: Optional[AsyncAppFabricClientConfig] = None,
    client_token: Optional["capo_appfabric.types.uuid.UUID"] = None,
    customer_managed_key_identifier: Optional[
        "capo_appfabric.types.identifier.Identifier"
    ] = None,
    tags: Optional["capo_appfabric.types.tag_list.TagList"] = None,
) -> "capo_appfabric.types.create_app_bundle_response.CreateAppBundleResponse":
    """<p>Creates an app bundle to collect data from an application using AppFabric.</p>

    Args:
        client_token: <p>Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a <a href="https://wikipedia.org/wiki/Universally_unique_identifier">UUID type of value</a>.</p> <p>If you don't provide this value, then Amazon Web Services generates a random one for you.</p> <p>If you retry the operation with the same <code>ClientToken</code>, but with different parameters, the retry fails with an <code>IdempotentParameterMismatch</code> error.</p>
        customer_managed_key_identifier: <p>The Amazon Resource Name (ARN) of the Key Management Service (KMS) key to use to encrypt the application data. If this is not specified, an Amazon Web Services owned key is used for encryption.</p>
        tags: <p>A map of the key-value pairs of the tag or tags to assign to the resource.</p>

    Raises:
        capo_appfabric.errors.access_denied_exception.AccessDeniedException: <p>You are not authorized to perform this operation.</p>
        capo_appfabric.errors.conflict_exception.ConflictException: <p>The request has created a conflict. Check the request parameters and try again.</p>
        capo_appfabric.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure with an internal server.</p>
        capo_appfabric.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request exceeds a service quota.</p>
        capo_appfabric.errors.throttling_exception.ThrottlingException: <p>The request rate exceeds the limit.</p>
        capo_appfabric.errors.validation_exception.ValidationException: <p>The request has invalid or missing parameters.</p>
        capo_appfabric.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appfabric.types.create_app_bundle_request.CreateAppBundleRequest]",
    ) -> AsyncOperationResponse[
        "capo_appfabric.types.create_app_bundle_response.CreateAppBundleResponse"
    ]:
        import capo_appfabric._operations.fabric_front_end_service.create_app_bundle

        (
            output,
            http_response,
        ) = await capo_appfabric._operations.fabric_front_end_service.create_app_bundle.async_create_app_bundle(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateAppBundle")
    )
    input_: capo_appfabric.types.create_app_bundle_request.CreateAppBundleRequest = {}
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token
    if customer_managed_key_identifier is not None:
        input_["customer_managed_key_identifier"] = customer_managed_key_identifier
    if tags is not None:
        input_["tags"] = tags

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