create_workload_identity_provider
async
¶
create_workload_identity_provider(
provider_name: workloadIdentityProviderNameType,
scheme: workloadIdentityProviderSchemeType,
*,
config_overrides: Optional[AsyncIAMClientConfig] = None,
description: Optional[workloadIdentityProviderDescriptionType] = None,
workload_identity_domain: Optional[WorkloadIdentityDomainType] = None,
resource_scope: Optional[workloadIdentityProviderScopeType] = None,
tags: Optional[tagListType] = None,
) -> CreateWorkloadIdentityProviderResponse
Creates a workload identity provider in your account or in your organization, according to ResourceScope. A provider is the issuer and the trust boundary for every workload identifier minted under it.
The provider's name must be unique within the collection it is created in. A name conflict returns EntityAlreadyExistsException.
IAM creates one JSON Web Token (JWT) outbound signer for each supported signing algorithm along with the provider.
Parameters:
-
provider_name(workloadIdentityProviderNameType) –The friendly name of the provider to create. The name must be unique within the collection the provider is created in, and it becomes the resource name segment of the provider's ARN.
-
description(Optional[workloadIdentityProviderDescriptionType], default:None) –A description of the provider. If you omit it, the provider carries no description and responses omit the
Descriptionelement. -
scheme(workloadIdentityProviderSchemeType) –The naming scheme of the identifiers minted under the provider.
-
SPIFFE– Renders the identifier in the form defined by SPIFFE (Secure Production Identity Framework For Everyone), an open standard for workload identity, rooted at the provider'sWorkloadIdentityDomain. -
NONE– Renders the path alone, with neither thespiffe://prefix nor the domain.
-
-
workload_identity_domain(Optional[WorkloadIdentityDomainType], default:None) –The domain that roots the identifiers minted under the provider. Use lowercase characters only.
This parameter is required when
SchemeisSPIFFE, because the domain is the naming root rendered into every identifier. Do not include it whenSchemeisNONE. -
resource_scope(Optional[workloadIdentityProviderScopeType], default:None) –The scope the provider is created at, which is fixed at creation.
ACCOUNTcreates the provider in your account andORGANIZATIONcreates it in your organization. If you do not include this parameter, it defaults toACCOUNT. -
tags(Optional[tagListType], default:None) –A list of tags that you want to attach to the new provider. Each tag consists of a key name and an associated value. Both members of a tag are required. Tag keys are case sensitive, and two tag keys that differ only in case are rejected with
InvalidInputException. For more information about tagging, see Tagging IAM resources in the IAM User Guide.If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
Raises:
-
ConcurrentModificationException–The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
-
EntityAlreadyExistsException–The request was rejected because it attempted to create a resource that already exists.
-
InvalidInputException–The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
-
LimitExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
-
ServiceFailureException–The request processing has failed because of an unknown error, exception or failure.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iam/_services/async_iam.py
2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 | |