Retrieves details of a specific partner relationship.
Parameters:
-
catalog
(Catalog)
–
The catalog identifier for the relationship.
-
program_management_account_identifier
(ProgramManagementAccountIdentifier)
–
The identifier of the program management account associated with the relationship.
-
identifier
(RelationshipIdentifier)
–
The unique identifier of the relationship to retrieve.
Raises:
Examples:
Example for GetRelationship
>>> await client.get_relationship(catalog='AWS', program_management_account_identifier='pma-u8ic702rtzng8', identifier='rs-l9o4fj3b5zb91')
Source code in docs_src/capo_partnercentral_channel/_services/async_partner_central_channel.py
| async def get_relationship(
self,
catalog: "capo_partnercentral_channel.types.catalog.Catalog",
program_management_account_identifier: "capo_partnercentral_channel.types.program_management_account_identifier.ProgramManagementAccountIdentifier",
identifier: "capo_partnercentral_channel.types.relationship_identifier.RelationshipIdentifier",
*,
config_overrides: Optional[AsyncPartnerCentralChannelClientConfig] = None,
) -> "capo_partnercentral_channel.types.get_relationship_response.GetRelationshipResponse":
"""<p>Retrieves details of a specific partner relationship.</p>
Args:
catalog: <p>The catalog identifier for the relationship.</p>
program_management_account_identifier: <p>The identifier of the program management account associated with the relationship.</p>
identifier: <p>The unique identifier of the relationship to retrieve.</p>
Raises:
capo_partnercentral_channel.errors.access_denied_exception.AccessDeniedException: <p>The request was denied due to insufficient permissions.</p>
capo_partnercentral_channel.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred while processing the request.</p>
capo_partnercentral_channel.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_partnercentral_channel.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests being sent in a short period.</p>
capo_partnercentral_channel.errors.validation_exception.ValidationException: <p>The request failed validation due to invalid input parameters.</p>
capo_partnercentral_channel.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Example for GetRelationship
>>> await client.get_relationship(catalog='AWS', program_management_account_identifier='pma-u8ic702rtzng8', identifier='rs-l9o4fj3b5zb91')
"""
async def _handler(
req: "AsyncOperationRequest[capo_partnercentral_channel.types.get_relationship_request.GetRelationshipRequest]",
) -> AsyncOperationResponse[
"capo_partnercentral_channel.types.get_relationship_response.GetRelationshipResponse"
]:
import capo_partnercentral_channel._operations.partner_central_channel.get_relationship
(
output,
http_response,
) = await capo_partnercentral_channel._operations.partner_central_channel.get_relationship.async_get_relationship(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetRelationship")
)
input_: capo_partnercentral_channel.types.get_relationship_request.GetRelationshipRequest = {
"catalog": catalog,
"program_management_account_identifier": program_management_account_identifier,
"identifier": identifier,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|