Skip to content

get_workload_deployment_pattern async

get_workload_deployment_pattern(
    workload_name: WorkloadName,
    deployment_pattern_name: DeploymentPatternName,
    *,
    config_overrides: Optional[AsyncLaunchWizardClientConfig] = None,
) -> GetWorkloadDeploymentPatternOutput

Returns details for a given workload and deployment pattern, including the available specifications. You can use the ListWorkloads operation to discover the available workload names and the ListWorkloadDeploymentPatterns operation to discover the available deployment pattern names of a given workload.

Parameters:

Raises:

Examples:

Get details about a specific Workload deployment pattern

>>> await client.get_workload_deployment_pattern(workload_name='MicrosoftActiveDirectory', deployment_pattern_name='adSelfManagedNewVpc')
Source code in docs_src/capo_launch_wizard/_services/async_launch_wizard.py
async def get_workload_deployment_pattern(
    self,
    workload_name: "capo_launch_wizard.types.workload_name.WorkloadName",
    deployment_pattern_name: "capo_launch_wizard.types.deployment_pattern_name.DeploymentPatternName",
    *,
    config_overrides: Optional[AsyncLaunchWizardClientConfig] = None,
) -> "capo_launch_wizard.types.get_workload_deployment_pattern_output.GetWorkloadDeploymentPatternOutput":
    """<p>Returns details for a given workload and deployment pattern, including the available specifications. You can use the <a href="https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloads.html">ListWorkloads</a> operation to discover the available workload names and the <a href="https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html">ListWorkloadDeploymentPatterns</a> operation to discover the available deployment pattern names of a given workload.</p>

    Args:
        workload_name: <p>The name of the workload.</p>
        deployment_pattern_name: <p>The name of the deployment pattern.</p>

    Raises:
        capo_launch_wizard.errors.internal_server_exception.InternalServerException: <p>An internal error has occurred. Retry your request, but if the problem persists, contact us with details by posting a question on <a href="https://repost.aws/">re:Post</a>.</p>
        capo_launch_wizard.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified workload or deployment resource can't be found.</p>
        capo_launch_wizard.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_launch_wizard.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Get details about a specific Workload deployment pattern

        >>> await client.get_workload_deployment_pattern(workload_name='MicrosoftActiveDirectory', deployment_pattern_name='adSelfManagedNewVpc')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_launch_wizard.types.get_workload_deployment_pattern_input.GetWorkloadDeploymentPatternInput]",
    ) -> AsyncOperationResponse[
        "capo_launch_wizard.types.get_workload_deployment_pattern_output.GetWorkloadDeploymentPatternOutput"
    ]:
        import capo_launch_wizard._operations.launch_wizard.get_workload_deployment_pattern

        (
            output,
            http_response,
        ) = await capo_launch_wizard._operations.launch_wizard.get_workload_deployment_pattern.async_get_workload_deployment_pattern(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetWorkloadDeploymentPattern")
    )
    input_: capo_launch_wizard.types.get_workload_deployment_pattern_input.GetWorkloadDeploymentPatternInput = {
        "workload_name": workload_name,
        "deployment_pattern_name": deployment_pattern_name,
    }

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