2026/12/01 - AWS Identity and Access Management - 29 new5 updated api methods
Changes Adds support for agent and workload identity (preview). New APIs let you create and manage workload identity providers, workload identity templates and their attestation policies, outbound signers, and tags, and turn on organization-level resources.
Removes the specified tag keys from the workload identity provider. In a valid request, IAM ignores keys that are not attached to the resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
See also: AWS API Documentation
Request Syntax
client.untag_workload_identity_provider(
WorkloadIdentityProviderArn='string',
TagKeys=[
'string',
]
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity provider from which you want to remove tags.
list
[REQUIRED]
A list of key names as a simple array of strings. The tags with matching keys are removed from the specified workload identity provider. No member can be null.
(string) --
None
Lists every outbound signer of a workload identity provider: X.509 and JWT, in every status, including retired ( INACTIVE) entries.
For an organization-scoped provider, any account in the organization can call this operation.
GetWorkloadIdentityProvider also returns the provider's signers, but at most ten per credential format and without retired entries. Use this operation to see every entry, for example to find retired entries to delete.
One flat list – SignerType on each entry tells you its format and which member of Configuration is set.
Consistent order, not chronological – Signers are returned in the same order on every call, but that order is not by signing time, so a signer recorded later can appear before one recorded earlier. Sort on StartSigningTime if you need time order.
Consistent paging – Signers created or deleted between calls do not shift the page boundary, so each entry appears at most once.
Markers are tied to the request – A marker only works with the same provider ARN, spelled exactly as in the request that returned it.
A provider with no signers returns an empty list with IsTruncated set to false. You can paginate the results using the MaxItems and Marker parameters. If IsTruncated is true, pass the returned Marker in the next request to retrieve the next page, and repeat until IsTruncated is false.
See also: AWS API Documentation
Request Syntax
client.list_workload_identity_provider_outbound_signers(
WorkloadIdentityProviderArn='string',
Marker='string',
MaxItems=123
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity provider.
string
Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
Pass the value unmodified. A marker only works with the same provider ARN, spelled exactly as in the request that returned it.
integer
Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true.
If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true, and Marker contains a value to include in the subsequent call that tells the service where to continue from.
dict
Response Syntax
{
'OutboundSigners': [
{
'SignerType': 'X509'|'JWT',
'Configuration': {
'X509': {
'CertificateAuthorityId': 'string',
'AccountId': 'string'
},
'Jwt': {
'KeyAlgorithm': 'string'
}
},
'Status': 'IN_TRANSITION'|'ACTIVE'|'VALIDATING'|'INACTIVE',
'SigningAlgorithm': 'string',
'StartSigningTime': datetime(2015, 1, 1),
'EndSigningTime': datetime(2015, 1, 1),
'DiscoveryExpirationTime': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
Response Structure
(dict) --
Contains the response to a successful ListWorkloadIdentityProviderOutboundSigners request.
OutboundSigners (list) --
The outbound signers on this page. The list is empty when the provider has no signers.
(dict) --
Contains information about one outbound signer of a workload identity provider.
This data type is used as a response element in the ListWorkloadIdentityProviderOutboundSigners operation. It is the flat form of what WorkloadIdentityOutboundSigners reports per credential format, so SignerType tells you an entry's format and which member of Configuration is set.
SignerType (string) --
The credential format of the signer. It is also the value you pass to DisableWorkloadIdentityProviderOutboundSigner or EnableWorkloadIdentityProviderOutboundSigner to act on the signers of that format.
Configuration (dict) --
The signer's authority. The X509 member is set for X.509 signers and the Jwt member for JWT signers.
X509 (dict) --
The Amazon Web Services Private CA certificate authority of the signer. Set when SignerType is X509.
CertificateAuthorityId (string) --
The certificate authority's ID, which is the last segment of its Amazon Resource Name (ARN), for example a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. IAM looks the certificate authority up in the Amazon Web Services Region of the IAM endpoint you call.
AccountId (string) --
The account that owns the certificate authority. You must specify it even when the certificate authority is in your own account.
Jwt (dict) --
The IAM-managed signing key of the signer. Set when SignerType is JWT.
KeyAlgorithm (string) --
The key's algorithm, for example ECC_NIST_P384.
Status (string) --
The signer's status. IAM calculates it from the signer's times rather than storing it. The start time counts as inside the signing window and the end time as outside it. Returned for X.509 signers only.
IN_TRANSITION – Attached, but StartSigningTime has not arrived. IAM publishes the signer's trust material so that verifiers can obtain it before the signer starts signing.
ACTIVE – Signing new credentials. This is the only status that issues credentials.
VALIDATING – No longer signing, but IAM still publishes the signer's trust material, so credentials it issued still verify.
INACTIVE – Retired. The signer neither signs nor verifies.
SigningAlgorithm (string) --
The JSON Web Signature (JWS) algorithm, alg, that the signer uses. Returned for JWT signers only.
StartSigningTime (datetime) --
The date and time, in ISO 8601 date-time format, when the signer starts or started signing. For JWT signers, this is when the provider was created.
EndSigningTime (datetime) --
The date and time, in ISO 8601 date-time format, when the signer stops or stopped signing. Absent while there is no end to the signing window. Returned for X.509 signers only.
DiscoveryExpirationTime (datetime) --
The date and time, in ISO 8601 date-time format, when the signer's trust material stops being published. Absent while the trust material remains published. Returned for X.509 signers only.
IsTruncated (boolean) --
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results.
Marker (string) --
When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
Attaches a resource policy to a workload identity provider, or replaces the one attached. A provider carries at most one resource policy, and the policy is a property of the provider rather than a resource of its own.
A member account binding to an organization-scoped provider needs a matching Allow here for iam:AssociateWorkloadIdentityTemplate or iam:DisassociateWorkloadIdentityTemplate, in addition to its own identity policy.
See also: AWS API Documentation
Request Syntax
client.put_workload_identity_provider_resource_policy(
WorkloadIdentityProviderArn='string',
PolicyDocument='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the provider to attach the policy to.
string
[REQUIRED]
The resource policy to attach, written whole.
Application-level quotas can bind sooner than the length constraint shown here, in which case the request returns LimitExceededException.
dict
Response Syntax
{}
Response Structure
(dict) --
Lists the workload identity providers in one collection. If there are none, the operation returns an empty list.
ResourceScope selects the collection and defaults to ACCOUNT, matching the create default, so you list an organization's providers by passing ORGANIZATION.
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
Request Syntax
client.list_workload_identity_providers(
ResourceScope='ACCOUNT'|'ORGANIZATION',
Marker='string',
MaxItems=123
)
string
The collection to list. ACCOUNT lists the providers in your account and ORGANIZATION lists the providers in your organization. If you do not include this parameter, it defaults to ACCOUNT.
string
Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
integer
Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true, and Marker contains a value to include in the subsequent call that tells the service where to continue from.
dict
Response Syntax
{
'WorkloadIdentityProviders': [
{
'Arn': 'string',
'ProviderName': 'string',
'ProviderId': 'string',
'ResourceScope': 'ACCOUNT'|'ORGANIZATION',
'Scheme': 'NONE'|'SPIFFE',
'Description': 'string',
'WorkloadIdentityDomain': 'string',
'CreateDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
Response Structure
(dict) --
Contains the response to a successful ListWorkloadIdentityProviders request.
WorkloadIdentityProviders (list) --
A list of providers. The list is empty when the collection holds no provider.
(dict) --
Contains information about one workload identity provider. This data type is used as a response element in the ListWorkloadIdentityProviders operation.
The entry is trimmed for enumeration, so a principal that is granted the list operation does not thereby read every provider's full configuration. To read a provider whole, call GetWorkloadIdentityProvider.
Arn (string) --
The Amazon Resource Name (ARN) specifying the provider. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
ProviderName (string) --
The friendly name that identifies the provider.
ProviderId (string) --
The unique identifier of the provider, which does not change for the life of the provider. IAM prefixes it with AWPA for an account-scoped provider and AWPO for an organization-scoped provider.
ResourceScope (string) --
The scope the provider was created at.
Scheme (string) --
The naming scheme of the identifiers minted under the provider. SPIFFE roots every identifier at the provider's domain, and NONE renders the path alone.
Description (string) --
The description of the provider. Present only when the provider carries one.
WorkloadIdentityDomain (string) --
The rendered naming root of the provider. Present only when a domain is claimed.
CreateDate (datetime) --
The date and time, in ISO 8601 date-time format, when the provider was created.
IsTruncated (boolean) --
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results.
Marker (string) --
When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
Resumes X.509 signing that was stopped with DisableWorkloadIdentityProviderOutboundSigner.
For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.
In each slot, IAM resumes the entry that stopped signing most recently, even if that entry has already become INACTIVE. Each resumed entry returns to IN_TRANSITION and IAM clears its end and expiration times. The entry starts signing after SigningDelayInHours, so its trust material reaches verifiers again first. Other entries keep retiring on their own schedule.
Two rules govern which entries IAM can resume. IAM never resumes an entry that a cancelled rotation stopped before it ever signed, and it does resume an entry that you disabled during its IN_TRANSITION period.
See also: AWS API Documentation
Request Syntax
client.enable_workload_identity_provider_outbound_signer(
WorkloadIdentityProviderArn='string',
SignerType='X509'|'JWT',
SigningDelayInHours=123
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity provider.
string
[REQUIRED]
The credential format to resume. The value must be X509. IAM rejects JWT, because IAM manages the outbound signers for JWT credentials, and you cannot disable, enable or delete them.
integer
The number of hours before each resumed signer starts signing.
Default: 1.
dict
Response Syntax
{}
Response Structure
(dict) --
Retrieves a workload identity template, including its tags, addressed by its own ARN rather than by any name.
The attestation policy is deliberately not returned here. It is read through GetWorkloadIdentityTemplateAttestationPolicy, so a principal that is granted the template read does not thereby learn what the template will attest.
See also: AWS API Documentation
Request Syntax
client.get_workload_identity_template(
WorkloadIdentityTemplateArn='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the template to retrieve.
dict
Response Syntax
{
'Name': 'string',
'TemplateId': 'string',
'Description': 'string',
'ResourceScope': 'ACCOUNT'|'ORGANIZATION',
'Arn': 'string',
'WorkloadIdentityProviderArn': 'string',
'PathPrefix': 'string',
'PathPattern': 'string',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'CreateDate': datetime(2015, 1, 1)
}
Response Structure
(dict) --
Contains the response to a successful GetWorkloadIdentityTemplate request.
Name (string) --
The name of the template.
TemplateId (string) --
The template's immutable identifier, which is distinct from its ARN. IAM prefixes it with AWTA for an account-scoped template and AWTO for an organization-scoped template. A template that is deleted and recreated under the same name keeps the ARN but gets a new identifier.
Description (string) --
The description of the template. Omitted when the template carries none.
ResourceScope (string) --
The scope the template is stored at.
Arn (string) --
The template's own Amazon Resource Name (ARN). For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
For an ORGANIZATION-scoped template, the account segment of the ARN is the organization ID, for example arn:aws:iam::o-abc123def4:workload-identity-template/PaymentsFleet.
WorkloadIdentityProviderArn (string) --
The Amazon Resource Name (ARN) of the provider the template was created under.
PathPrefix (string) --
The namespace the pattern sits under. Omitted when the template carries none.
PathPattern (string) --
The pattern that workload identifiers are rendered from.
Tags (list) --
The tags attached to the template. Omitted when the template carries none. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
(dict) --
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Key (string) --
The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.
Value (string) --
The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
CreateDate (datetime) --
The date and time, in ISO 8601 date-time format, when the template was created.
Enables your organization to create organization-level resources. An organization-level resource is an IAM resource that your organization owns instead of an individual Amazon Web Services account owning it.
Creating organization-level resources is an opt-in capability. Your organization cannot create organization-level resources until the management account enables the capability by calling this operation.
The organization-level resources that this capability governs include workload identity providers and workload identity templates that you create with a ResourceScope of ORGANIZATION. For more information, see CreateWorkloadIdentityProvider and CreateWorkloadIdentityTemplate.
This operation acts on the organization that the calling account belongs to. Only the management account of that organization can call this operation. A delegated administrator for IAM cannot call it.
Before you call this operation, your organization must be configured with the following settings:
You must manage your Amazon Web Services accounts in Organizations.
Your organization must have All features enabled. For more information, see Available feature sets in the Organizations User Guide.
Enable trusted access for Identity and Access Management in Organizations. For details, see IAM and Organizations in the Organizations User Guide.
See also: AWS API Documentation
Request Syntax
client.enable_organization_level_resources()
dict
Response Syntax
{
'OrganizationId': 'string',
'EnabledFeatures': [
'RootCredentialsManagement'|'RootSessions'|'OrganizationIamResources',
]
}
Response Structure
(dict) --
OrganizationId (string) --
The unique identifier (ID) of the organization that the calling account belongs to.
EnabledFeatures (list) --
The features that are enabled for your organization after this call. This is the organization's complete set of enabled features, not only the feature that you enabled.
(string) --
Retrieves a workload identity template's attestation policy.
NoSuchEntityException covers both a template that does not exist and a template that holds no policy.
See also: AWS API Documentation
Request Syntax
client.get_workload_identity_template_attestation_policy(
WorkloadIdentityTemplateArn='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the template whose policy is retrieved.
dict
Response Syntax
{
'WorkloadIdentityTemplateArn': 'string',
'AttestationPolicy': 'string'
}
Response Structure
(dict) --
Contains the response to a successful GetWorkloadIdentityTemplateAttestationPolicy request.
WorkloadIdentityTemplateArn (string) --
The Amazon Resource Name (ARN) of the template, echoed from the request.
AttestationPolicy (string) --
The template's attestation policy. A success always carries a policy.
Immediately stops a workload identity provider from issuing X.509 credentials.
For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.
It stops every X.509 signer that is signing or waiting to sign – That includes both halves of a rotation in progress, across all slots. A signing entry gets an EndSigningTime of now, and an entry still in IN_TRANSITION stops before it ever signs.
It keeps trust material published for 12 hours – Every stopped entry gets a DiscoveryExpirationTime of now plus 12 hours, so credentials it already issued keep verifying. Stopped entries become VALIDATING, then INACTIVE after 12 hours.
It removes nothing – IAM keeps the certificate authority associations and the signer configuration, so EnableWorkloadIdentityProviderOutboundSigner can resume signing.
It is idempotent – Calling it again while a signer is still VALIDATING succeeds and changes nothing.
See also: AWS API Documentation
Request Syntax
client.disable_workload_identity_provider_outbound_signer(
WorkloadIdentityProviderArn='string',
SignerType='X509'|'JWT'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity provider.
string
[REQUIRED]
The credential format to disable. The value must be X509. IAM rejects JWT, because IAM manages the outbound signers for JWT credentials, and you cannot disable, enable or delete them.
dict
Response Syntax
{}
Response Structure
(dict) --
Removes a workload identity template's attestation policy and leaves the template itself in place. The template admits nothing until a policy is set again.
A template that holds no policy returns NoSuchEntityException rather than success.
See also: AWS API Documentation
Request Syntax
client.delete_workload_identity_template_attestation_policy(
WorkloadIdentityTemplateArn='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the template whose policy is removed.
dict
Response Syntax
{}
Response Structure
(dict) --
Adds tags to the specified workload identity template. A supplied key replaces the value of an existing tag with that key, and tags with other keys are unchanged. Tag keys are case sensitive. A request that would leave the template with two tag keys that differ only in case is rejected with InvalidInputException, whether both keys are in the request or one is already attached. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
See also: AWS API Documentation
Request Syntax
client.tag_workload_identity_template(
WorkloadIdentityTemplateArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity template to which you want to add tags.
list
[REQUIRED]
The tags to add to the workload identity template. Each tag consists of a key name and an associated value. No member can be null, and IAM rejects a tag key in the reserved aws: namespace.
(dict) --
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Key (string) -- [REQUIRED]
The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.
Value (string) -- [REQUIRED]
The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
None
Reads the status of the deletion whose identifier DeleteWorkloadIdentityProvider returned. Only the account that sent the delete can read it, and only until the identifier expires.
See also: AWS API Documentation
Request Syntax
client.get_workload_identity_provider_deletion_status(
DeletionTaskId='string'
)
string
[REQUIRED]
The identifier of the deletion to read, which is the value returned by DeleteWorkloadIdentityProvider.
dict
Response Syntax
{
'WorkloadIdentityProviderArn': 'string',
'Status': 'SUCCEEDED'|'IN_PROGRESS'|'FAILED'|'NOT_STARTED'
}
Response Structure
(dict) --
Contains the response to a successful GetWorkloadIdentityProviderDeletionStatus request.
WorkloadIdentityProviderArn (string) --
The Amazon Resource Name (ARN) of the provider the deletion applied to.
Status (string) --
The state of the deletion. SUCCEEDED means the deletion completed.
Rotates the X.509 outbound signer in a slot to a different Amazon Web Services Private CA certificate authority with the same key algorithm. You can also use it to cancel or re-time a rotation that is already in progress.
For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.
The certificate authority you specify determines what happens:
A new authority – IAM adds a new entry that starts signing after SigningDelayInHours. The current signer keeps signing until that moment and then stops, so there is no gap and no overlap in signing. The current signer stays VALIDATING for 12 hours after it stops, then becomes INACTIVE.
The authority that is currently signing – If a rotation is pending, IAM cancels it and signing continues without interruption. If no rotation is pending, the request makes no change.
The authority that is being rotated in – This changes the rotation's timing. Its start time moves to now plus SigningDelayInHours, and the current signer stops at that same moment. IAM adds no entry. You can shorten the delay, and IAM does not check that the delay leaves verifiers enough time to obtain the new trust material.
An authority whose entry in the slot has stopped signing – An entry that is disabled, VALIDATING or INACTIVE attaches again as the incoming signer, following the rotation process above.
A slot holds at most five entries. When a rotation would exceed that, IAM first deletes the oldest INACTIVE entries in the slot, calling DeleteWorkloadIdentityProviderOutboundSigner on your behalf. Those deletions are permanent even if the rotation then fails. If there are not enough INACTIVE entries, the request fails with LimitExceededException.
This operation only rotates within a slot. The certificate authority must therefore use the same key algorithm as the slot's signer, and it must meet the certificate authority requirements listed under CreateWorkloadIdentityProviderOutboundSigner. To start using a different key algorithm, use CreateWorkloadIdentityProviderOutboundSigner to fill that slot.
See also: AWS API Documentation
Request Syntax
client.update_workload_identity_provider_outbound_signer(
WorkloadIdentityProviderArn='string',
OutboundSigner={
'X509': {
'CertificateAuthorityId': 'string',
'AccountId': 'string'
}
},
SigningDelayInHours=123
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity provider.
dict
[REQUIRED]
The certificate authority to rotate to. Specify the X509 member.
X509 (dict) --
The Amazon Web Services Private CA certificate authority of the X.509 signer.
CertificateAuthorityId (string) -- [REQUIRED]
The certificate authority's ID, which is the last segment of its Amazon Resource Name (ARN), for example a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. IAM looks the certificate authority up in the Amazon Web Services Region of the IAM endpoint you call.
AccountId (string) -- [REQUIRED]
The account that owns the certificate authority. You must specify it even when the certificate authority is in your own account.
integer
The number of hours before the incoming authority starts signing.
Default: 24.
dict
Response Syntax
{}
Response Structure
(dict) --
Removes the resource policy from a workload identity provider and leaves the provider in place.
See also: AWS API Documentation
Request Syntax
client.delete_workload_identity_provider_resource_policy(
WorkloadIdentityProviderArn='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the provider whose resource policy you want to remove.
dict
Response Syntax
{}
Response Structure
(dict) --
Permanently removes one X.509 outbound signer entry from a workload identity provider. The provider stops signing with that entry's certificate authority, and IAM stops publishing the entry's trust material. The certificate authority itself is not deleted.
For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.
You can delete a VALIDATING or an INACTIVE entry. IAM rejects an ACTIVE or an IN_TRANSITION entry with InvalidInputException, so disable the signer first.
You identify the entry by its certificate authority, through the identifier and the account. IAM removes only that entry, even if the slot holds others. After you delete the last entry in a slot, CreateWorkloadIdentityProviderOutboundSigner can fill the slot again.
IAM releases the association in Amazon Web Services Private CA using your credentials. If Amazon Web Services Private CA refuses to release the association, IAM removes nothing. If Amazon Web Services Private CA reports that the association is already gone, the deletion goes ahead. In neither case is the certificate authority or its certificate deleted. The certificate authority remains in Amazon Web Services Private CA in your account, and deleting it there is a separate action that you take yourself.
Delete every X.509 outbound signer on a provider before you delete the provider itself.
See also: AWS API Documentation
Request Syntax
client.delete_workload_identity_provider_outbound_signer(
WorkloadIdentityProviderArn='string',
OutboundSigner={
'X509': {
'CertificateAuthorityId': 'string',
'AccountId': 'string'
}
}
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity provider.
dict
[REQUIRED]
The certificate authority of the signer to delete. Specify the X509 member. AccountId must match the account recorded for the signer.
X509 (dict) --
The Amazon Web Services Private CA certificate authority of the X.509 signer.
CertificateAuthorityId (string) -- [REQUIRED]
The certificate authority's ID, which is the last segment of its Amazon Resource Name (ARN), for example a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. IAM looks the certificate authority up in the Amazon Web Services Region of the IAM endpoint you call.
AccountId (string) -- [REQUIRED]
The account that owns the certificate authority. You must specify it even when the certificate authority is in your own account.
dict
Response Syntax
{
'WorkloadIdentityProviderArn': 'string',
'OutboundSigner': {
'X509': {
'CertificateAuthorityId': 'string',
'AccountId': 'string'
}
},
'Status': 'SUCCEEDED'
}
Response Structure
(dict) --
Contains the response to a successful DeleteWorkloadIdentityProviderOutboundSigner request.
WorkloadIdentityProviderArn (string) --
The provider's Amazon Resource Name (ARN), exactly as specified in the request.
OutboundSigner (dict) --
The certificate authority whose signer was removed, exactly as specified in the request.
X509 (dict) --
The Amazon Web Services Private CA certificate authority of the X.509 signer.
CertificateAuthorityId (string) --
The certificate authority's ID, which is the last segment of its Amazon Resource Name (ARN), for example a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. IAM looks the certificate authority up in the Amazon Web Services Region of the IAM endpoint you call.
AccountId (string) --
The account that owns the certificate authority. You must specify it even when the certificate authority is in your own account.
Status (string) --
The status of the deletion. The value is SUCCEEDED.
Sets a workload identity template's attestation policy. The operation is an upsert, so any previous policy is superseded.
See also: AWS API Documentation
Request Syntax
client.put_workload_identity_template_attestation_policy(
WorkloadIdentityTemplateArn='string',
AttestationPolicy='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the template whose policy is set.
string
[REQUIRED]
The attestation policy to set on the template.
The policy's conditions must fit the template's stored PathPattern. A policy that does not returns InvalidInputException.
dict
Response Syntax
{}
Response Structure
(dict) --
Attaches an Amazon Web Services Private CA certificate authority to a workload identity provider as an X.509 outbound signer, in a slot that is empty. An outbound signer is the signing authority a provider uses to issue credentials of one format. It belongs to its provider and has no ARN of its own. IAM groups X.509 signers into slots by key algorithm.
For an organization-scoped provider, only the organization's management account or a delegated administrator can call this operation.
The new signer starts in IN_TRANSITION and begins signing after SigningDelayInHours. Until then, the provider issues no X.509 credentials from it. To see the new signer and its StartSigningTime, call GetWorkloadIdentityProvider or ListWorkloadIdentityProviderOutboundSigners.
If the slot for the certificate authority's key algorithm already holds any signer, the request fails with EntityAlreadyExistsException. That includes a signer that is disabled, VALIDATING or INACTIVE. To replace the authority in a slot, use UpdateWorkloadIdentityProviderOutboundSigner. To free the slot, use DeleteWorkloadIdentityProviderOutboundSigner.
The certificate authority must meet all of the following requirements, and a certificate authority that fails any of them returns InvalidInputException:
It is in the US East (N. Virginia) Amazon Web Services Region, us-east-1.
Its status is ACTIVE.
Its type is ROOT or SUBORDINATE. A subordinate certificate authority must chain up to a root certificate authority, which is the certificate IAM publishes as the trust anchor.
Its key algorithm is one of EC_prime256v1, EC_secp384r1, EC_secp521r1, RSA_2048, RSA_3072 or RSA_4096. ML-DSA and SM2 keys are not supported.
It is a service-affiliated certificate authority created for use with IAM Workload Identity, with a UsageMode of SERVICE_AFFILIATED and a service affiliation code of IAM_WORKLOAD_IDENTITY.
IAM chooses the signature algorithm from the certificate authority's key algorithm rather than from the certificate authority's configured signing algorithm:
EC_prime256v1 signs with ECDSA_SHA_256.
EC_secp384r1 signs with ECDSA_SHA_384.
EC_secp521r1 signs with ECDSA_SHA_512.
RSA_2048 signs with RSASSA_PKCS1_V1_5_SHA_256.
RSA_3072 and RSA_4096 sign with RSASSA_PKCS1_V1_5_SHA_384.
See also: AWS API Documentation
Request Syntax
client.create_workload_identity_provider_outbound_signer(
WorkloadIdentityProviderArn='string',
OutboundSigner={
'X509': {
'CertificateAuthorityId': 'string',
'AccountId': 'string'
}
},
SigningDelayInHours=123
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity provider.
dict
[REQUIRED]
The certificate authority to attach. Specify the X509 member.
X509 (dict) --
The Amazon Web Services Private CA certificate authority of the X.509 signer.
CertificateAuthorityId (string) -- [REQUIRED]
The certificate authority's ID, which is the last segment of its Amazon Resource Name (ARN), for example a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. IAM looks the certificate authority up in the Amazon Web Services Region of the IAM endpoint you call.
AccountId (string) -- [REQUIRED]
The account that owns the certificate authority. You must specify it even when the certificate authority is in your own account.
integer
The number of hours before the new signer starts signing. During that time IAM publishes the signer's trust material, so verifiers can obtain it before the signer starts signing.
Default: 1.
dict
Response Syntax
{}
Response Structure
(dict) --
Removes the specified tag keys from the workload identity template. In a valid request, IAM ignores keys that are not attached to the resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
See also: AWS API Documentation
Request Syntax
client.untag_workload_identity_template(
WorkloadIdentityTemplateArn='string',
TagKeys=[
'string',
]
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity template from which you want to remove tags.
list
[REQUIRED]
A list of key names as a simple array of strings. The tags with matching keys are removed from the specified workload identity template. No member can be null.
(string) --
None
Deletes a workload identity template, addressed by its own ARN. A template that does not exist returns NoSuchEntityException rather than success, so a mis-addressed ARN cannot read as a completed delete.
See also: AWS API Documentation
Request Syntax
client.delete_workload_identity_template(
WorkloadIdentityTemplateArn='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the template to delete.
dict
Response Syntax
{
'WorkloadIdentityTemplateArn': 'string',
'Status': 'SUCCEEDED'
}
Response Structure
(dict) --
Contains the response to a successful DeleteWorkloadIdentityTemplate request.
WorkloadIdentityTemplateArn (string) --
The Amazon Resource Name (ARN) of the deleted template.
Status (string) --
The status of the deletion.
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.
See also: AWS API Documentation
Request Syntax
client.create_workload_identity_provider(
ProviderName='string',
Description='string',
Scheme='NONE'|'SPIFFE',
WorkloadIdentityDomain='string',
ResourceScope='ACCOUNT'|'ORGANIZATION',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
string
[REQUIRED]
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.
string
A description of the provider. If you omit it, the provider carries no description and responses omit the Description element.
string
[REQUIRED]
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's WorkloadIdentityDomain.
NONE – Renders the path alone, with neither the spiffe:// prefix nor the domain.
string
The domain that roots the identifiers minted under the provider. Use lowercase characters only.
This parameter is required when Scheme is SPIFFE, because the domain is the naming root rendered into every identifier. Do not include it when Scheme is NONE.
string
The scope the provider is created at, which is fixed at creation. ACCOUNT creates the provider in your account and ORGANIZATION creates it in your organization. If you do not include this parameter, it defaults to ACCOUNT.
list
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.
(dict) --
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Key (string) -- [REQUIRED]
The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.
Value (string) -- [REQUIRED]
The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
dict
Response Syntax
{
'Arn': 'string',
'ResourceScope': 'ACCOUNT'|'ORGANIZATION',
'ProviderName': 'string',
'ProviderId': 'string',
'Description': 'string',
'Scheme': 'NONE'|'SPIFFE',
'WorkloadIdentityDomain': 'string',
'OutboundSigners': {
'X509': [
{
'Configuration': {
'CertificateAuthorityId': 'string',
'AccountId': 'string'
},
'Status': 'IN_TRANSITION'|'ACTIVE'|'VALIDATING'|'INACTIVE',
'StartSigningTime': datetime(2015, 1, 1),
'EndSigningTime': datetime(2015, 1, 1),
'DiscoveryExpirationTime': datetime(2015, 1, 1)
},
],
'Jwt': [
{
'SigningAlgorithm': 'string',
'Configuration': {
'KeyAlgorithm': 'string'
},
'StartSigningTime': datetime(2015, 1, 1)
},
],
'OidcIssuerUri': 'string',
'BundleEndpointUrl': 'string'
},
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'CreateDate': datetime(2015, 1, 1)
}
Response Structure
(dict) --
Contains the response to a successful CreateWorkloadIdentityProvider request.
Arn (string) --
The Amazon Resource Name (ARN) specifying the provider, for example arn:aws:iam::111122223333:workload-identity-provider/PaymentsProd. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
ResourceScope (string) --
The resolved scope of the provider, so ACCOUNT is reported when the request omitted it.
ProviderName (string) --
The friendly name of the provider, as supplied on the request.
ProviderId (string) --
The unique identifier of the provider, which does not change for the life of the provider. IAM prefixes it with AWPA for an account-scoped provider and AWPO for an organization-scoped provider.
Description (string) --
The description of the provider. Present only when the provider carries one.
Scheme (string) --
The naming scheme of the provider. SPIFFE roots every identifier at the provider's domain, and NONE renders the path alone.
WorkloadIdentityDomain (string) --
The domain that roots the identifiers minted under the provider. Present only when a domain is claimed.
OutboundSigners (dict) --
The provider's outbound signing material. On a create this carries the JWT signers only, one for each supported signing algorithm, plus the publishing endpoints. The X509 list is empty, because you attach a certificate authority after the provider exists. Present only when the provider holds signing material.
X509 (list) --
The provider's X.509 outbound signers. The list is empty until a certificate authority is attached.
(dict) --
Contains the read-only form of one X.509 outbound signer, as reported in the X509 member of a WorkloadIdentityOutboundSigners object.
The times and the status say the same thing two ways. The times are authoritative, so you can always reconstruct the state by comparing them to the current time. Status is IAM's own reading of those times, so the common question of whether a signer is signing does not require the arithmetic.
Configuration (dict) --
The certificate authority that you attached, read back.
CertificateAuthorityId (string) --
The certificate authority's ID, which is the last segment of its Amazon Resource Name (ARN), for example a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. IAM looks the certificate authority up in the Amazon Web Services Region of the IAM endpoint you call.
AccountId (string) --
The account that owns the certificate authority. You must specify it even when the certificate authority is in your own account.
Status (string) --
The signer's status, which IAM derives from the signer's times rather than storing. For what each value means, see WorkloadIdentityOutboundSignerSummary.
StartSigningTime (datetime) --
The date and time, in ISO 8601 date-time format, when the signer begins or began signing.
EndSigningTime (datetime) --
The date and time, in ISO 8601 date-time format, when the signer stops or stopped signing. Absent while the signer has no scheduled end, which is the steady state. It is set once a rotation, a disable or a delete takes the signer out of service.
DiscoveryExpirationTime (datetime) --
The date and time, in ISO 8601 date-time format, when the signer's trust material stops being published. Absent while the trust material stays published. Once set, it is later than EndSigningTime, because the trust material outlives the signing window so that credentials the signer already issued keep verifying until they expire.
Jwt (list) --
The provider's JSON Web Token (JWT) outbound signers, one for each supported signing algorithm, created with the provider.
(dict) --
Contains the read-only form of one JWT outbound signer, as reported in the Jwt member of a WorkloadIdentityOutboundSigners object.
IAM creates these keys with the provider and rotates them on its own schedule, so you attach nothing here. What you read back is which algorithm each key signs under, and since when.
This data type carries no status and no retirement times, unlike the X.509 signer detail, because these keys are never disabled, deleted or scheduled to stop. Every key reported is signing.
SigningAlgorithm (string) --
The JSON Web Signature (JWS) algorithm, alg, that the key signs under. It matches both the alg header of the credentials this key issues and the alg of its JWKS entry.
Configuration (dict) --
The key's own configuration.
KeyAlgorithm (string) --
The key's algorithm, for example ECC_NIST_P384.
StartSigningTime (datetime) --
The date and time, in ISO 8601 date-time format, when the provider was created. These keys sign from the moment the provider exists, with no propagation wait.
OidcIssuerUri (string) --
The issuer URI of the provider. It matches the iss claim of the JWT SPIFFE Verifiable Identity Document (SVID) credentials that the provider issues, and it is the OpenID Connect (OIDC) discovery root for the provider's JSON Web Key Set (JWKS).
BundleEndpointUrl (string) --
The SPIFFE trust bundle endpoint for the provider's trust domain.
Tags (list) --
The tags attached to the provider. Present only when the provider carries tags. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
(dict) --
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Key (string) --
The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.
Value (string) --
The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
CreateDate (datetime) --
The date and time, in ISO 8601 date-time format, when the provider was created.
Lists the workload identity templates under a workload identity provider. If there are none, the operation returns an empty list.
You can paginate the results using the MaxItems and Marker parameters.
See also: AWS API Documentation
Request Syntax
client.list_workload_identity_templates(
WorkloadIdentityProviderArn='string',
ResourceScope='ACCOUNT'|'ORGANIZATION',
Marker='string',
MaxItems=123,
Filter='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity provider whose templates are listed.
string
The scope to list templates at.
string
Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
integer
Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated response element is true. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated response element returns true, and Marker contains a value to include in the subsequent call that tells the service where to continue from.
string
A filter expression that narrows the page to templates whose attestation policy admits a given service principal.
The only supported attribute is service_principal and the only supported filter type is =, so an expression reads service_principal = "eks.amazonaws.com". The value is the service principal as it is written in a policy, for example eks.amazonaws.com. Whitespace around = is optional. If you omit the filter, the list is not filtered. A filter that is present but blank is rejected. A value that IAM does not recognize as a service principal returns InvalidInputException rather than an empty page.
dict
Response Syntax
{
'WorkloadIdentityTemplates': [
{
'Name': 'string',
'Arn': 'string',
'WorkloadIdentityProviderArn': 'string',
'ResourceScope': 'ACCOUNT'|'ORGANIZATION',
'Description': 'string',
'PathPrefix': 'string',
'PathPattern': 'string',
'CreateDate': datetime(2015, 1, 1)
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
Response Structure
(dict) --
Contains the response to a successful ListWorkloadIdentityTemplates request.
WorkloadIdentityTemplates (list) --
A list of templates. The list is empty when nothing matches.
(dict) --
Contains information about one workload identity template, as the template appears on a ListWorkloadIdentityTemplates page.
The summary does not carry the attestation policy or the tags. Both are read through their own operations, GetWorkloadIdentityTemplateAttestationPolicy and ListWorkloadIdentityTemplateTags.
Name (string) --
The name of the template, and the leaf of its own resource ARN.
Arn (string) --
The template's own Amazon Resource Name (ARN). For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
WorkloadIdentityProviderArn (string) --
The Amazon Resource Name (ARN) of the provider the template was created under.
ResourceScope (string) --
The scope the template is stored at.
Description (string) --
The description of the template.
PathPrefix (string) --
The namespace the pattern sits under.
PathPattern (string) --
The pattern that workload identifiers are rendered from.
CreateDate (datetime) --
The date and time, in ISO 8601 date-time format, when the template was created.
IsTruncated (boolean) --
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results.
Marker (string) --
When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
Reads the resource policy on a workload identity provider.
NoSuchEntityException covers both a provider that does not exist and a provider that has no resource policy.
See also: AWS API Documentation
Request Syntax
client.get_workload_identity_provider_resource_policy(
WorkloadIdentityProviderArn='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the provider whose resource policy you want to read.
dict
Response Syntax
{
'Arn': 'string',
'PolicyDocument': 'string'
}
Response Structure
(dict) --
Contains the response to a successful GetWorkloadIdentityProviderResourcePolicy request.
Arn (string) --
The provider's Amazon Resource Name (ARN). Note that this element is named Arn, not WorkloadIdentityProviderArn as on the request.
PolicyDocument (string) --
The resource policy attached to the provider, returned exactly as stored.
Adds tags to the specified workload identity provider. A supplied key replaces the value of an existing tag with that key, and tags with other keys are unchanged. Tag keys are case sensitive. A request that would leave the provider with two tag keys that differ only in case is rejected with InvalidInputException, whether both keys are in the request or one is already attached. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
See also: AWS API Documentation
Request Syntax
client.tag_workload_identity_provider(
WorkloadIdentityProviderArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity provider to which you want to add tags.
list
[REQUIRED]
The tags to add to the workload identity provider. Each tag consists of a key name and an associated value. No member can be null, and IAM rejects a tag key in the reserved aws: namespace.
(dict) --
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Key (string) -- [REQUIRED]
The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.
Value (string) -- [REQUIRED]
The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
None
Lists the tags that are attached to the specified workload identity provider. If no tags are attached to the specified resource, the response contains an empty list. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
You can paginate the results using the MaxItems and Marker parameters. If IsTruncated is true, pass the returned Marker in the next request to retrieve the next page.
See also: AWS API Documentation
Request Syntax
client.list_workload_identity_provider_tags(
WorkloadIdentityProviderArn='string',
Marker='string',
MaxItems=123
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity provider for which you want to see the list of tags.
string
Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
Omit it on the first call.
integer
Use this only when paginating results to indicate the maximum number of tags you want in the response. If additional tags exist beyond the maximum you specify, the IsTruncated response element is true.
There is no default value, so a request that omits this parameter leaves the page size to the service. IAM might return fewer results even when there are more results available. In that case, the IsTruncated response element returns true, and Marker contains a value to include in the subsequent call that tells the service where to continue from.
dict
Response Syntax
{
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
Response Structure
(dict) --
Contains the response to a successful ListWorkloadIdentityProviderTags request.
Tags (list) --
The tags that are currently attached to the workload identity provider. Each tag consists of a key name and an associated value. The list is empty when the provider carries no tags.
(dict) --
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Key (string) --
The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.
Value (string) --
The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
IsTruncated (boolean) --
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results.
Marker (string) --
When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
Retrieves a workload identity provider by ARN, including its tags and its outbound signers.
See also: AWS API Documentation
Request Syntax
client.get_workload_identity_provider(
WorkloadIdentityProviderArn='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the provider to read.
dict
Response Syntax
{
'Arn': 'string',
'ResourceScope': 'ACCOUNT'|'ORGANIZATION',
'ProviderName': 'string',
'ProviderId': 'string',
'Description': 'string',
'Scheme': 'NONE'|'SPIFFE',
'WorkloadIdentityDomain': 'string',
'OutboundSigners': {
'X509': [
{
'Configuration': {
'CertificateAuthorityId': 'string',
'AccountId': 'string'
},
'Status': 'IN_TRANSITION'|'ACTIVE'|'VALIDATING'|'INACTIVE',
'StartSigningTime': datetime(2015, 1, 1),
'EndSigningTime': datetime(2015, 1, 1),
'DiscoveryExpirationTime': datetime(2015, 1, 1)
},
],
'Jwt': [
{
'SigningAlgorithm': 'string',
'Configuration': {
'KeyAlgorithm': 'string'
},
'StartSigningTime': datetime(2015, 1, 1)
},
],
'OidcIssuerUri': 'string',
'BundleEndpointUrl': 'string'
},
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'CreateDate': datetime(2015, 1, 1)
}
Response Structure
(dict) --
Contains the response to a successful GetWorkloadIdentityProvider request.
Arn (string) --
The Amazon Resource Name (ARN) specifying the provider. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
ResourceScope (string) --
The scope the provider was created at.
ProviderName (string) --
The friendly name of the provider.
ProviderId (string) --
The unique identifier of the provider, which does not change for the life of the provider. IAM prefixes it with AWPA for an account-scoped provider and AWPO for an organization-scoped provider.
Description (string) --
The description of the provider. Present only when the provider carries one.
Scheme (string) --
The naming scheme of the provider. SPIFFE roots every identifier at the provider's domain, and NONE renders the path alone.
WorkloadIdentityDomain (string) --
The domain that roots the identifiers minted under the provider. Present only when a domain is claimed.
OutboundSigners (dict) --
The provider's outbound signing material. Present only when the provider holds signing material.
This element reports at most ten signers per credential format and omits retired entries. To see every entry, including retired ones, call ListWorkloadIdentityProviderOutboundSigners.
X509 (list) --
The provider's X.509 outbound signers. The list is empty until a certificate authority is attached.
(dict) --
Contains the read-only form of one X.509 outbound signer, as reported in the X509 member of a WorkloadIdentityOutboundSigners object.
The times and the status say the same thing two ways. The times are authoritative, so you can always reconstruct the state by comparing them to the current time. Status is IAM's own reading of those times, so the common question of whether a signer is signing does not require the arithmetic.
Configuration (dict) --
The certificate authority that you attached, read back.
CertificateAuthorityId (string) --
The certificate authority's ID, which is the last segment of its Amazon Resource Name (ARN), for example a1b2c3d4-5678-90ab-cdef-EXAMPLE11111. IAM looks the certificate authority up in the Amazon Web Services Region of the IAM endpoint you call.
AccountId (string) --
The account that owns the certificate authority. You must specify it even when the certificate authority is in your own account.
Status (string) --
The signer's status, which IAM derives from the signer's times rather than storing. For what each value means, see WorkloadIdentityOutboundSignerSummary.
StartSigningTime (datetime) --
The date and time, in ISO 8601 date-time format, when the signer begins or began signing.
EndSigningTime (datetime) --
The date and time, in ISO 8601 date-time format, when the signer stops or stopped signing. Absent while the signer has no scheduled end, which is the steady state. It is set once a rotation, a disable or a delete takes the signer out of service.
DiscoveryExpirationTime (datetime) --
The date and time, in ISO 8601 date-time format, when the signer's trust material stops being published. Absent while the trust material stays published. Once set, it is later than EndSigningTime, because the trust material outlives the signing window so that credentials the signer already issued keep verifying until they expire.
Jwt (list) --
The provider's JSON Web Token (JWT) outbound signers, one for each supported signing algorithm, created with the provider.
(dict) --
Contains the read-only form of one JWT outbound signer, as reported in the Jwt member of a WorkloadIdentityOutboundSigners object.
IAM creates these keys with the provider and rotates them on its own schedule, so you attach nothing here. What you read back is which algorithm each key signs under, and since when.
This data type carries no status and no retirement times, unlike the X.509 signer detail, because these keys are never disabled, deleted or scheduled to stop. Every key reported is signing.
SigningAlgorithm (string) --
The JSON Web Signature (JWS) algorithm, alg, that the key signs under. It matches both the alg header of the credentials this key issues and the alg of its JWKS entry.
Configuration (dict) --
The key's own configuration.
KeyAlgorithm (string) --
The key's algorithm, for example ECC_NIST_P384.
StartSigningTime (datetime) --
The date and time, in ISO 8601 date-time format, when the provider was created. These keys sign from the moment the provider exists, with no propagation wait.
OidcIssuerUri (string) --
The issuer URI of the provider. It matches the iss claim of the JWT SPIFFE Verifiable Identity Document (SVID) credentials that the provider issues, and it is the OpenID Connect (OIDC) discovery root for the provider's JSON Web Key Set (JWKS).
BundleEndpointUrl (string) --
The SPIFFE trust bundle endpoint for the provider's trust domain.
Tags (list) --
The tags attached to the provider. Present only when the provider carries tags. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
(dict) --
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Key (string) --
The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.
Value (string) --
The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
CreateDate (datetime) --
The date and time, in ISO 8601 date-time format, when the provider was created.
Deletes a workload identity provider.
The provider must be empty first. A workload identity template that still references it causes DeleteConflictException. Delete every X.509 outbound signer on the provider before you delete the provider itself. A provider that does not exist returns NoSuchEntityException rather than success, so a mis-addressed ARN cannot read as a completed delete.
The response carries a DeletionTaskId, a unique token that expires 24 hours after the call. Pass it to GetWorkloadIdentityProviderDeletionStatus to read the status of the deletion.
See also: AWS API Documentation
Request Syntax
client.delete_workload_identity_provider(
WorkloadIdentityProviderArn='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the provider to delete.
dict
Response Syntax
{
'DeletionTaskId': 'string'
}
Response Structure
(dict) --
Contains the response to a successful DeleteWorkloadIdentityProvider request.
DeletionTaskId (string) --
The identifier of the deletion. Pass it to GetWorkloadIdentityProviderDeletionStatus to read the deletion's status.
Lists the tags that are attached to the specified workload identity template. If no tags are attached to the specified resource, the response contains an empty list. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
You can paginate the results using the MaxItems and Marker parameters. If IsTruncated is true, pass the returned Marker in the next request to retrieve the next page.
See also: AWS API Documentation
Request Syntax
client.list_workload_identity_template_tags(
WorkloadIdentityTemplateArn='string',
Marker='string',
MaxItems=123
)
string
[REQUIRED]
The Amazon Resource Name (ARN) of the workload identity template for which you want to see the list of tags.
string
Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.
Omit it on the first call.
integer
Use this only when paginating results to indicate the maximum number of tags you want in the response. If additional tags exist beyond the maximum you specify, the IsTruncated response element is true.
There is no default value, so a request that omits this parameter leaves the page size to the service. IAM might return fewer results even when there are more results available. In that case, the IsTruncated response element returns true, and Marker contains a value to include in the subsequent call that tells the service where to continue from.
dict
Response Syntax
{
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'IsTruncated': True|False,
'Marker': 'string'
}
Response Structure
(dict) --
Contains the response to a successful ListWorkloadIdentityTemplateTags request.
Tags (list) --
The tags that are currently attached to the workload identity template. Each tag consists of a key name and an associated value. The list is empty when the template carries no tags.
(dict) --
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Key (string) --
The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.
Value (string) --
The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
IsTruncated (boolean) --
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results.
Marker (string) --
When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
Creates a workload identity template under a workload identity provider.
The operation accepts two mutually exclusive modes, and the member you supply decides which one you are in. TemplateDefinition puts the request in template definition mode, and PathPattern puts it in direct authoring mode.
Use template definition mode when a service-owned definition already covers the workload you are onboarding. IAM then renders the pattern and the attestation policy for you, so there is less to get wrong. Use direct authoring mode when no definition covers your case, or when you need a pattern or an attestation policy that the available definitions do not offer.
Template definition mode – You name a service-owned definition through TemplateDefinition and supply only the values that definition leaves open. WorkloadIdentityTemplateDefinitionType carries which values a given definition leaves open and the name it gives each one. IAM renders PathPattern and AttestationPolicy from the definition, so you author neither. In this mode, Tags is the only other request parameter you can supply.
Direct authoring mode – You must supply Name, WorkloadIdentityProviderArn and PathPattern yourself, and you can supply Description, PathPrefix, AttestationPolicy and Tags.
Because the two modes make different members mandatory, no member of this request is unconditionally required, and every parameter below therefore reads Required: No. The per-mode rules are what govern. TemplateDefinition is required in template definition mode and forbidden in direct authoring mode. Name, WorkloadIdentityProviderArn and PathPattern are required in direct authoring mode and forbidden in template definition mode, where IAM renders all three from the definition.
AttestationPolicy is optional on this operation. A policy supplied here is equivalent to one supplied later by PutWorkloadIdentityTemplateAttestationPolicy, and a template created without one admits nothing until a policy is set.
See also: AWS API Documentation
Request Syntax
client.create_workload_identity_template(
Name='string',
Description='string',
ResourceScope='ACCOUNT'|'ORGANIZATION',
WorkloadIdentityProviderArn='string',
PathPrefix='string',
PathPattern='string',
AttestationPolicy='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
],
TemplateDefinition={
'TemplateDefinitionArn': 'string',
'ReplacementValues': {
'string': {
'Values': [
'string',
]
}
}
}
)
string
The name of the template. It is the leaf of the template's own resource ARN and it does not appear in any rendered identifier.
Required in direct authoring mode, and forbidden in template definition mode.
string
A description of the template. If you omit it, the template carries no description and responses omit the Description element.
Forbidden in template definition mode.
string
The scope the template is created at. An ORGANIZATION-scoped template belongs to your organization. If you do not include this parameter, it defaults to ACCOUNT.
An ORGANIZATION-scoped template must reference an organization-scoped provider. An ACCOUNT-scoped template can reference an account-scoped provider in your account or an organization-scoped provider in your organization.
Forbidden in template definition mode.
string
The Amazon Resource Name (ARN) of the workload identity provider to create the template under.
Required in direct authoring mode, and forbidden in template definition mode, where the service renders it from the definition.
string
The namespace between the provider's naming root and the rendered pattern. Segments only, with no leading slash, no trailing slash and no empty segment.
Forbidden in template definition mode.
string
The pattern that workload identifiers are rendered from. For the pattern grammar, and for the checks the regular expression cannot express, see WorkloadIdentityTemplatePathPatternType.
Required in direct authoring mode, and forbidden in template definition mode, where the service renders it from the definition.
string
The attestation policy that decides which workloads can be attested through the template. A policy supplied here is equivalent to one supplied later by PutWorkloadIdentityTemplateAttestationPolicy.
Forbidden in template definition mode, where the service renders the policy from the definition.
list
A list of tags that you want to attach to the new template. Each tag consists of a key name and an associated value. 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.
Tags is accepted in both modes. A template definition never carries tags of its own.
(dict) --
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Key (string) -- [REQUIRED]
The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.
Value (string) -- [REQUIRED]
The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
dict
The service-owned definition to render the template from, carrying only the values that definition leaves open. For the values a definition leaves open and the name of each, see WorkloadIdentityTemplateDefinitionType.
Supplying this parameter selects template definition mode. It is forbidden in direct authoring mode.
TemplateDefinitionArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the service-owned template definition to render from.
ReplacementValues (dict) --
The values the definition leaves open, keyed by the name the definition gives each one.
(string) --
(dict) --
Contains one entry of the ReplacementValues map of a WorkloadIdentityTemplateDefinitionType object.
Values (list) -- [REQUIRED]
The values this entry supplies to the template definition.
The value is a list rather than a single string because a policy condition routinely takes several values.
(string) --
dict
Response Syntax
{
'Name': 'string',
'TemplateId': 'string',
'Description': 'string',
'ResourceScope': 'ACCOUNT'|'ORGANIZATION',
'Arn': 'string',
'WorkloadIdentityProviderArn': 'string',
'PathPrefix': 'string',
'PathPattern': 'string',
'AttestationPolicy': 'string',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'CreateDate': datetime(2015, 1, 1)
}
Response Structure
(dict) --
Contains the response to a successful CreateWorkloadIdentityTemplate request.
Name (string) --
The name of the template. In template definition mode, the service renders it from the definition.
TemplateId (string) --
The template's immutable identifier, which is distinct from its ARN. IAM prefixes it with AWTA for an account-scoped template and AWTO for an organization-scoped template. A template that is deleted and recreated under the same name keeps the ARN but gets a new identifier.
Description (string) --
The description of the template. Omitted when none was supplied.
ResourceScope (string) --
The resolved scope, so you learn which scope applied even when you omitted the parameter.
Arn (string) --
The template's own Amazon Resource Name (ARN). Name is its leaf. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
For an ORGANIZATION-scoped template, the account segment of the ARN is the organization ID, for example arn:aws:iam::o-abc123def4:workload-identity-template/PaymentsFleet.
WorkloadIdentityProviderArn (string) --
The Amazon Resource Name (ARN) of the provider the template was created under. In template definition mode, the service renders it from the definition.
PathPrefix (string) --
The namespace the pattern sits under. Omitted when none was supplied.
PathPattern (string) --
The pattern that workload identifiers are rendered from.
AttestationPolicy (string) --
The attestation policy set by this call. Echoed when a policy was set by this call, and omitted otherwise.
Tags (list) --
The tags attached to the template. Omitted when no tags were supplied. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
(dict) --
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Key (string) --
The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.
Value (string) --
The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.
CreateDate (datetime) --
The date and time, in ISO 8601 date-time format, when the template was created.
Disables your organization's ability to create organization-level resources. An organization-level resource is an IAM resource that your organization owns instead of an individual Amazon Web Services account owning it. After you disable this capability, your organization returns to its default state and cannot create organization-level resources until the management account enables the capability again.
The organization-level resources that this capability governs include workload identity providers and workload identity templates that you create with a ResourceScope of ORGANIZATION.
Delete your organization's organization-level resources before you call this operation. If any organization-level resource still exists, IAM rejects the request with OrganizationLevelResourcesExistException. To delete an organization-scoped workload identity provider or workload identity template, see DeleteWorkloadIdentityProvider and DeleteWorkloadIdentityTemplate.
This operation acts on the organization that the calling account belongs to. Only the management account of that organization can call this operation. A delegated administrator for IAM cannot call it.
See also: AWS API Documentation
Request Syntax
client.disable_organization_level_resources()
dict
Response Syntax
{
'OrganizationId': 'string',
'EnabledFeatures': [
'RootCredentialsManagement'|'RootSessions'|'OrganizationIamResources',
]
}
Response Structure
(dict) --
OrganizationId (string) --
The unique identifier (ID) of the organization that the calling account belongs to.
EnabledFeatures (list) --
The features that are enabled for your organization after this call. This is the organization's complete set of enabled features, so the feature that you disabled is no longer in the list.
(string) --
{'EnabledFeatures': {'OrganizationIamResources'}}
Disables the management of privileged root user credentials across member accounts in your organization. When you disable this feature, the management account and the delegated administrator for IAM can no longer manage root user credentials for member accounts in your organization.
See also: AWS API Documentation
Request Syntax
client.disable_organizations_root_credentials_management()
dict
Response Syntax
{
'OrganizationId': 'string',
'EnabledFeatures': [
'RootCredentialsManagement'|'RootSessions'|'OrganizationIamResources',
]
}
Response Structure
(dict) --
OrganizationId (string) --
The unique identifier (ID) of an organization.
EnabledFeatures (list) --
The features enabled for centralized root access for member accounts in your organization.
(string) --
{'EnabledFeatures': {'OrganizationIamResources'}}
Disables root user sessions for privileged tasks across member accounts in your organization. When you disable this feature, the management account and the delegated administrator for IAM can no longer perform privileged tasks on member accounts in your organization.
See also: AWS API Documentation
Request Syntax
client.disable_organizations_root_sessions()
dict
Response Syntax
{
'OrganizationId': 'string',
'EnabledFeatures': [
'RootCredentialsManagement'|'RootSessions'|'OrganizationIamResources',
]
}
Response Structure
(dict) --
OrganizationId (string) --
The unique identifier (ID) of an organization.
EnabledFeatures (list) --
The features you have enabled for centralized root access of member accounts in your organization.
(string) --
{'EnabledFeatures': {'OrganizationIamResources'}}
Enables the management of privileged root user credentials across member accounts in your organization. When you enable root credentials management for centralized root access, the management account and the delegated administrator for IAM can manage root user credentials for member accounts in your organization.
Before you enable centralized root access, you must have an account configured with the following settings:
You must manage your Amazon Web Services accounts in Organizations.
Enable trusted access for Identity and Access Management in Organizations. For details, see IAM and Organizations in the Organizations User Guide.
See also: AWS API Documentation
Request Syntax
client.enable_organizations_root_credentials_management()
dict
Response Syntax
{
'OrganizationId': 'string',
'EnabledFeatures': [
'RootCredentialsManagement'|'RootSessions'|'OrganizationIamResources',
]
}
Response Structure
(dict) --
OrganizationId (string) --
The unique identifier (ID) of an organization.
EnabledFeatures (list) --
The features you have enabled for centralized root access.
(string) --
{'EnabledFeatures': {'OrganizationIamResources'}}
Allows the management account or delegated administrator to perform privileged tasks on member accounts in your organization. For more information, see Centrally manage root access for member accounts in the Identity and Access Management User Guide.
Before you enable this feature, you must have an account configured with the following settings:
You must manage your Amazon Web Services accounts in Organizations.
Enable trusted access for Identity and Access Management in Organizations. For details, see IAM and Organizations in the Organizations User Guide.
See also: AWS API Documentation
Request Syntax
client.enable_organizations_root_sessions()
dict
Response Syntax
{
'OrganizationId': 'string',
'EnabledFeatures': [
'RootCredentialsManagement'|'RootSessions'|'OrganizationIamResources',
]
}
Response Structure
(dict) --
OrganizationId (string) --
The unique identifier (ID) of an organization.
EnabledFeatures (list) --
The features you have enabled for centralized root access.
(string) --
{'EnabledFeatures': {'OrganizationIamResources'}}
Lists the centralized root access features enabled for your organization. For more information, see Centrally manage root access for member accounts.
See also: AWS API Documentation
Request Syntax
client.list_organizations_features()
dict
Response Syntax
{
'OrganizationId': 'string',
'EnabledFeatures': [
'RootCredentialsManagement'|'RootSessions'|'OrganizationIamResources',
]
}
Response Structure
(dict) --
OrganizationId (string) --
The unique identifier (ID) of an organization.
EnabledFeatures (list) --
Specifies the features that are currently available in your organization.
(string) --