create_certificate_provider
async
¶
create_certificate_provider(
certificate_provider_name: CertificateProviderName,
lambda_function_arn: CertificateProviderFunctionArn,
account_default_for_operations: CertificateProviderAccountDefaultForOperations,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
client_token: Optional[ClientToken] = None,
tags: Optional[TagList] = None,
) -> CreateCertificateProviderResponse
Creates an Amazon Web Services IoT Core certificate provider. You can use Amazon Web Services IoT Core certificate provider to customize how to sign a certificate signing request (CSR) in IoT fleet provisioning. For more information, see Customizing certificate signing using Amazon Web Services IoT Core certificate provider from Amazon Web Services IoT Core Developer Guide.
Requires permission to access the CreateCertificateProvider action.
After you create a certificate provider, the behavior of CreateCertificateFromCsr API for fleet provisioning will change and all API calls to CreateCertificateFromCsr will invoke the certificate provider to create the certificates. It can take up to a few minutes for this behavior to change after a certificate provider is created.
Parameters:
-
certificate_provider_name(CertificateProviderName) –The name of the certificate provider.
-
lambda_function_arn(CertificateProviderFunctionArn) –The ARN of the Lambda function that defines the authentication logic.
-
account_default_for_operations(CertificateProviderAccountDefaultForOperations) –A list of the operations that the certificate provider will use to generate certificates. Valid value:
CreateCertificateFromCsr. -
client_token(Optional[ClientToken], default:None) –A string that you can optionally pass in the
CreateCertificateProviderrequest to make sure the request is idempotent. -
tags(Optional[TagList], default:None) –Metadata which can be used to manage the certificate provider.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
ResourceAlreadyExistsException–The resource already exists.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
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 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 | |