Skip to content

get_action_type async

get_action_type(
    category: ActionCategory,
    owner: ActionTypeOwner,
    provider: ActionProvider,
    version: Version,
    *,
    config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
) -> GetActionTypeOutput

Returns information about an action type created for an external provider, where the action is to be used by customers of the external provider. The action can be created with any supported integration model.

Parameters:

  • category (ActionCategory) –

    Defines what kind of action can be taken in the stage. The following are the valid values:

    • Source

    • Build

    • Test

    • Deploy

    • Approval

    • Invoke

    • Compute

  • owner (ActionTypeOwner) –

    The creator of an action type that was created with any supported integration model. There are two valid values: AWS and ThirdParty.

  • provider (ActionProvider) –

    The provider of the action type being called. The provider name is specified when the action type is created.

  • version (Version) –

    A string that describes the action type version.

Raises:

Source code in docs_src/capo_codepipeline/_services/async_code_pipeline.py
async def get_action_type(
    self,
    category: "capo_codepipeline.types.action_category.ActionCategory",
    owner: "capo_codepipeline.types.action_type_owner.ActionTypeOwner",
    provider: "capo_codepipeline.types.action_provider.ActionProvider",
    version: "capo_codepipeline.types.version.Version",
    *,
    config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
) -> "capo_codepipeline.types.get_action_type_output.GetActionTypeOutput":
    """<p>Returns information about an action type created for an external provider, where the action is to be used by customers of the external provider. The action can be created with any supported integration model.</p>

    Args:
        category: <p>Defines what kind of action can be taken in the stage. The following are the valid values:</p> <ul> <li> <p> <code>Source</code> </p> </li> <li> <p> <code>Build</code> </p> </li> <li> <p> <code>Test</code> </p> </li> <li> <p> <code>Deploy</code> </p> </li> <li> <p> <code>Approval</code> </p> </li> <li> <p> <code>Invoke</code> </p> </li> <li> <p> <code>Compute</code> </p> </li> </ul>
        owner: <p>The creator of an action type that was created with any supported integration model. There are two valid values: <code>AWS</code> and <code>ThirdParty</code>.</p>
        provider: <p>The provider of the action type being called. The provider name is specified when the action type is created.</p>
        version: <p>A string that describes the action type version.</p>

    Raises:
        capo_codepipeline.errors.action_type_not_found_exception.ActionTypeNotFoundException: <p>The specified action type cannot be found.</p>
        capo_codepipeline.errors.validation_exception.ValidationException: <p>The validation was specified in an invalid format.</p>
        capo_codepipeline.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_codepipeline.types.get_action_type_input.GetActionTypeInput]",
    ) -> AsyncOperationResponse[
        "capo_codepipeline.types.get_action_type_output.GetActionTypeOutput"
    ]:
        import capo_codepipeline._operations.code_pipeline_20150709.get_action_type

        (
            output,
            http_response,
        ) = await capo_codepipeline._operations.code_pipeline_20150709.get_action_type.async_get_action_type(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetActionType")
    )
    input_: capo_codepipeline.types.get_action_type_input.GetActionTypeInput = {
        "category": category,
        "owner": owner,
        "provider": provider,
        "version": version,
    }

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