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
>>> client.get_workload_deployment_pattern(workload_name='MicrosoftActiveDirectory', deployment_pattern_name='adSelfManagedNewVpc')
Source code in docs_src/capo_launch_wizard/_services/launch_wizard.py
| 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[LaunchWizardClientConfig] = 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
>>> client.get_workload_deployment_pattern(workload_name='MicrosoftActiveDirectory', deployment_pattern_name='adSelfManagedNewVpc')
"""
def _handler(
req: "OperationRequest[capo_launch_wizard.types.get_workload_deployment_pattern_input.GetWorkloadDeploymentPatternInput]",
) -> OperationResponse[
"capo_launch_wizard.types.get_workload_deployment_pattern_output.GetWorkloadDeploymentPatternOutput"
]:
import capo_launch_wizard._operations.launch_wizard.get_workload_deployment_pattern
output, http_response = (
capo_launch_wizard._operations.launch_wizard.get_workload_deployment_pattern.get_workload_deployment_pattern(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|