Deletes a shared trust store association.
Parameters:
-
trust_store_arn
(Optional[TrustStoreArn], default:
None
)
–
The Amazon Resource Name (ARN) of the trust store.
-
resource_arn
(Optional[ResourceArn], default:
None
)
–
The Amazon Resource Name (ARN) of the resource.
Raises:
Examples:
Delete a shared trust store association
This example deletes the association between the specified trust store and the specified load balancer.
>>> client.delete_shared_trust_store_association(trust_store_arn='arn:aws:elasticloadbalancing:us-east-1:123456789012:truststore/my-trust-store/73e2d6bc24d8a063', resource_arn='arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/my-load-balancer/80233fa81d678c2c')
Source code in docs_src/capo_elastic_load_balancing_v2/_services/elastic_load_balancingv2.py
| def delete_shared_trust_store_association(
self,
*,
config_overrides: Optional[ElasticLoadBalancingv2ClientConfig] = None,
trust_store_arn: Optional[
"capo_elastic_load_balancing_v2.types.trust_store_arn.TrustStoreArn"
] = None,
resource_arn: Optional[
"capo_elastic_load_balancing_v2.types.resource_arn.ResourceArn"
] = None,
) -> "capo_elastic_load_balancing_v2.types.delete_shared_trust_store_association_output.DeleteSharedTrustStoreAssociationOutput":
"""<p>Deletes a shared trust store association.</p>
Args:
trust_store_arn: <p>The Amazon Resource Name (ARN) of the trust store.</p>
resource_arn: <p>The Amazon Resource Name (ARN) of the resource.</p>
Raises:
capo_elastic_load_balancing_v2.errors.delete_association_same_account_exception.DeleteAssociationSameAccountException: <p>The specified association can't be within the same account.</p>
capo_elastic_load_balancing_v2.errors.trust_store_association_not_found_exception.TrustStoreAssociationNotFoundException: <p>The specified association does not exist.</p>
capo_elastic_load_balancing_v2.errors.trust_store_not_found_exception.TrustStoreNotFoundException: <p>The specified trust store does not exist.</p>
capo_elastic_load_balancing_v2.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Delete a shared trust store association
This example deletes the association between the specified trust store and the specified load balancer.
>>> client.delete_shared_trust_store_association(trust_store_arn='arn:aws:elasticloadbalancing:us-east-1:123456789012:truststore/my-trust-store/73e2d6bc24d8a063', resource_arn='arn:aws:elasticloadbalancing:us-east-1:123456789012:loadbalancer/app/my-load-balancer/80233fa81d678c2c')
"""
def _handler(
req: "OperationRequest[capo_elastic_load_balancing_v2.types.delete_shared_trust_store_association_input.DeleteSharedTrustStoreAssociationInput]",
) -> OperationResponse[
"capo_elastic_load_balancing_v2.types.delete_shared_trust_store_association_output.DeleteSharedTrustStoreAssociationOutput"
]:
import capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.delete_shared_trust_store_association
output, http_response = (
capo_elastic_load_balancing_v2._operations.elastic_load_balancing_v10.delete_shared_trust_store_association.delete_shared_trust_store_association(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteSharedTrustStoreAssociation")
)
input_: capo_elastic_load_balancing_v2.types.delete_shared_trust_store_association_input.DeleteSharedTrustStoreAssociationInput = {}
if trust_store_arn is not None:
input_["trust_store_arn"] = trust_store_arn
if resource_arn is not None:
input_["resource_arn"] = resource_arn
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|