Returns information about a CloudFormation extension publisher.
If you don't supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account.
For more information about registering as a publisher, see:
Parameters:
-
publisher_id
(Optional[PublisherId], default:
None
)
–
The ID of the extension publisher.
If you don't supply a PublisherId, and you have registered as an extension publisher, DescribePublisher returns information about your own publisher account.
Raises:
Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
| async def describe_publisher(
self,
*,
config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
publisher_id: Optional[
"capo_cloudformation.types.publisher_id.PublisherId"
] = None,
) -> "capo_cloudformation.types.describe_publisher_output.DescribePublisherOutput":
"""<p>Returns information about a CloudFormation extension publisher.</p> <p>If you don't supply a <code>PublisherId</code>, and you have registered as an extension publisher, <code>DescribePublisher</code> returns information about your own publisher account.</p> <p>For more information about registering as a publisher, see:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterPublisher.html">RegisterPublisher</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html">Publishing extensions to make them available for public use</a> in the <i>CloudFormation Command Line Interface (CLI) User Guide</i> </p> </li> </ul>
Args:
publisher_id: <p>The ID of the extension publisher.</p> <p>If you don't supply a <code>PublisherId</code>, and you have registered as an extension publisher, <code>DescribePublisher</code> returns information about your own publisher account.</p>
Raises:
capo_cloudformation.errors.cfn_registry_exception.CFNRegistryException: <p>An error occurred during a CloudFormation registry operation.</p>
capo_cloudformation.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_cloudformation.types.describe_publisher_input.DescribePublisherInput]",
) -> AsyncOperationResponse[
"capo_cloudformation.types.describe_publisher_output.DescribePublisherOutput"
]:
import capo_cloudformation._operations.cloud_formation.describe_publisher
(
output,
http_response,
) = await capo_cloudformation._operations.cloud_formation.describe_publisher.async_describe_publisher(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribePublisher")
)
input_: capo_cloudformation.types.describe_publisher_input.DescribePublisherInput = {}
if publisher_id is not None:
input_["publisher_id"] = publisher_id
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|