associate_certificate
¶
associate_certificate(
gateway_id: GatewayId,
acm_certificate_arn: AcmCertificateArn,
client_token: str,
*,
config_overrides: Optional[RTBFabricClientConfig] = None,
) -> AssociateCertificateResponse
Associates an ACM certificate with a responder gateway.
Parameters:
-
gateway_id(GatewayId) –The unique identifier of the gateway.
-
acm_certificate_arn(AcmCertificateArn) –The Amazon Resource Name (ARN) of the ACM certificate to associate.
-
client_token(str) –Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same
clientToken, but with different parameters, the retry fails with anIdempotentParameterMismatcherror.
Raises:
-
AccessDeniedException–The request could not be completed because you do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed because of a conflict in the current state of the resource.
-
InternalServerException–The request could not be completed because of an internal server error. Try your call again.
-
ResourceNotFoundException–The request could not be completed because the resource does not exist.
-
ServiceQuotaExceededException–The request could not be completed because you exceeded a service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request could not be completed because it fails satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Associate a certificate with a responder gateway Associate an ACM certificate with a responder gateway
>>> client.associate_certificate(gateway_id='rtb-gw-12345678', acm_certificate_arn='arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012', client_token='550e8400-e29b-41d4-a716-446655440000')
Source code in docs_src/capo_rtbfabric/_services/rtb_fabric.py
2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 | |