@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSIAMRolesAnywhere
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSIAMRolesAnywhere
instead.
AWS Identity and Access Management Roles Anywhere provides a secure way for your workloads such as servers, containers, and applications running outside of AWS to obtain Temporary AWS credentials. Your workloads can use the same IAM policies and roles that you have configured with native AWS applications to access AWS resources. Using IAM Roles Anywhere will eliminate the need to manage long term credentials for workloads running outside of AWS.
To use IAM Roles Anywhere customer workloads will need to use X.509 certificates issued by their Certificate Authority (CA) . The Certificate Authority (CA) needs to be registered with IAM Roles Anywhere as a trust anchor to establish trust between customer PKI and IAM Roles Anywhere. Customers who do not manage their own PKI system can use AWS Certificate Manager Private Certificate Authority (ACM PCA) to create a Certificate Authority and use that to establish trust with IAM Roles Anywhere
This guide describes the IAM rolesanywhere operations that you can call programmatically. For general information about IAM Roles Anywhere see https://docs.aws.amazon.com/
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
CreateProfileResult |
createProfile(CreateProfileRequest createProfileRequest)
Creates a profile.
|
CreateTrustAnchorResult |
createTrustAnchor(CreateTrustAnchorRequest createTrustAnchorRequest)
Creates a trust anchor.
|
DeleteCrlResult |
deleteCrl(DeleteCrlRequest deleteCrlRequest)
Deletes a certificate revocation list (CRL).
|
DeleteProfileResult |
deleteProfile(DeleteProfileRequest deleteProfileRequest)
Deletes a profile.
|
DeleteTrustAnchorResult |
deleteTrustAnchor(DeleteTrustAnchorRequest deleteTrustAnchorRequest)
Deletes a trust anchor.
|
DisableCrlResult |
disableCrl(DisableCrlRequest disableCrlRequest)
Disables a certificate revocation list (CRL).
|
DisableProfileResult |
disableProfile(DisableProfileRequest disableProfileRequest)
Disables a profile.
|
DisableTrustAnchorResult |
disableTrustAnchor(DisableTrustAnchorRequest disableTrustAnchorRequest)
Disables a trust anchor.
|
EnableCrlResult |
enableCrl(EnableCrlRequest enableCrlRequest)
Enables a certificate revocation list (CRL).
|
EnableProfileResult |
enableProfile(EnableProfileRequest enableProfileRequest)
Enables the roles in a profile to receive session credentials in CreateSession.
|
EnableTrustAnchorResult |
enableTrustAnchor(EnableTrustAnchorRequest enableTrustAnchorRequest)
Enables a trust anchor.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetCrlResult |
getCrl(GetCrlRequest getCrlRequest)
Gets a certificate revocation list (CRL).
|
GetProfileResult |
getProfile(GetProfileRequest getProfileRequest)
Gets a profile.
|
GetSubjectResult |
getSubject(GetSubjectRequest getSubjectRequest)
Gets a Subject.
|
GetTrustAnchorResult |
getTrustAnchor(GetTrustAnchorRequest getTrustAnchorRequest)
Gets a trust anchor.
|
ImportCrlResult |
importCrl(ImportCrlRequest importCrlRequest)
Imports the certificate revocation list (CRL).
|
ListCrlsResult |
listCrls(ListCrlsRequest listCrlsRequest)
Lists all Crls in the authenticated account and Amazon Web Services Region.
|
ListProfilesResult |
listProfiles(ListProfilesRequest listProfilesRequest)
Lists all profiles in the authenticated account and Amazon Web Services Region.
|
ListSubjectsResult |
listSubjects(ListSubjectsRequest listSubjectsRequest)
Lists the subjects in the authenticated account and Amazon Web Services Region.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags attached to the resource.
|
ListTrustAnchorsResult |
listTrustAnchors(ListTrustAnchorsRequest listTrustAnchorsRequest)
Lists the trust anchors in the authenticated account and Amazon Web Services Region.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
TagResourceResult |
tagResource(TagResourceRequest tagResourceRequest)
Attaches tags to a resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from the resource.
|
UpdateCrlResult |
updateCrl(UpdateCrlRequest updateCrlRequest)
Updates the certificate revocation list (CRL).
|
UpdateProfileResult |
updateProfile(UpdateProfileRequest updateProfileRequest)
Updates the profile.
|
UpdateTrustAnchorResult |
updateTrustAnchor(UpdateTrustAnchorRequest updateTrustAnchorRequest)
Updates the trust anchor.You establish trust between IAM Roles Anywhere and your certificate authority (CA) by
configuring a trust anchor.
|
static final String ENDPOINT_PREFIX
CreateProfileResult createProfile(CreateProfileRequest createProfileRequest)
Creates a profile. A profile is configuration resource to list the roles that RolesAnywhere service is trusted to assume. In addition, by applying a profile you can intersect permissions with IAM managed policies.
Required permissions: rolesanywhere:CreateProfile
.
createProfileRequest
- ValidationException
- Validation exception error.AccessDeniedException
- You do not have sufficient access to perform this action.CreateTrustAnchorResult createTrustAnchor(CreateTrustAnchorRequest createTrustAnchorRequest)
Creates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. A Trust Anchor is defined either as a reference to a AWS Certificate Manager Private Certificate Authority (ACM PCA), or by uploading a Certificate Authority (CA) certificate. Your AWS workloads can authenticate with the trust anchor using certificates issued by the trusted Certificate Authority (CA) in exchange for temporary AWS credentials.
Required permissions: rolesanywhere:CreateTrustAnchor
.
createTrustAnchorRequest
- ValidationException
- Validation exception error.AccessDeniedException
- You do not have sufficient access to perform this action.DeleteCrlResult deleteCrl(DeleteCrlRequest deleteCrlRequest)
Deletes a certificate revocation list (CRL).
Required permissions: rolesanywhere:DeleteCrl
.
deleteCrlRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.DeleteProfileResult deleteProfile(DeleteProfileRequest deleteProfileRequest)
Deletes a profile.
Required permissions: rolesanywhere:DeleteProfile
.
deleteProfileRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.DeleteTrustAnchorResult deleteTrustAnchor(DeleteTrustAnchorRequest deleteTrustAnchorRequest)
Deletes a trust anchor.
Required permissions: rolesanywhere:DeleteTrustAnchor
.
deleteTrustAnchorRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.DisableCrlResult disableCrl(DisableCrlRequest disableCrlRequest)
Disables a certificate revocation list (CRL).
Required permissions: rolesanywhere:DisableCrl
.
disableCrlRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.DisableProfileResult disableProfile(DisableProfileRequest disableProfileRequest)
Disables a profile. When disabled, CreateSession requests with this profile fail.
Required permissions: rolesanywhere:DisableProfile
.
disableProfileRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.DisableTrustAnchorResult disableTrustAnchor(DisableTrustAnchorRequest disableTrustAnchorRequest)
Disables a trust anchor. When disabled, CreateSession requests specifying this trust anchor are unauthorized.
Required permissions: rolesanywhere:DisableTrustAnchor
.
disableTrustAnchorRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.EnableCrlResult enableCrl(EnableCrlRequest enableCrlRequest)
Enables a certificate revocation list (CRL). When enabled, certificates stored in the CRL are unauthorized to receive session credentials.
Required permissions: rolesanywhere:EnableCrl
.
enableCrlRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.EnableProfileResult enableProfile(EnableProfileRequest enableProfileRequest)
Enables the roles in a profile to receive session credentials in CreateSession.
Required permissions: rolesanywhere:EnableProfile
.
enableProfileRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.EnableTrustAnchorResult enableTrustAnchor(EnableTrustAnchorRequest enableTrustAnchorRequest)
Enables a trust anchor. When enabled, certificates in the trust anchor chain are authorized for trust validation.
Required permissions: rolesanywhere:EnableTrustAnchor
.
enableTrustAnchorRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.GetCrlResult getCrl(GetCrlRequest getCrlRequest)
Gets a certificate revocation list (CRL).
Required permissions: rolesanywhere:GetCrl
.
getCrlRequest
- ResourceNotFoundException
- The resource could not be found.GetProfileResult getProfile(GetProfileRequest getProfileRequest)
Gets a profile.
Required permissions: rolesanywhere:GetProfile
.
getProfileRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.GetSubjectResult getSubject(GetSubjectRequest getSubjectRequest)
Gets a Subject. A Subject associates a certificate identity with authentication attempts by CreateSession. The Subject resources stores audit information such as status of the last authentication attempt, the certificate data used in the attempt, and the last time the associated identity attempted authentication.
Required permissions: rolesanywhere:GetSubject
.
getSubjectRequest
- ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.GetTrustAnchorResult getTrustAnchor(GetTrustAnchorRequest getTrustAnchorRequest)
Gets a trust anchor.
Required permissions: rolesanywhere:GetTrustAnchor
.
getTrustAnchorRequest
- ValidationException
- Validation exception error.ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.ImportCrlResult importCrl(ImportCrlRequest importCrlRequest)
Imports the certificate revocation list (CRL). CRl is a list of certificates that have been revoked by the issuing certificate Authority (CA). IAM Roles Anywhere validates against the crl list before issuing credentials.
Required permissions: rolesanywhere:ImportCrl
.
importCrlRequest
- ValidationException
- Validation exception error.AccessDeniedException
- You do not have sufficient access to perform this action.ListCrlsResult listCrls(ListCrlsRequest listCrlsRequest)
Lists all Crls in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListCrls
.
listCrlsRequest
- ValidationException
- Validation exception error.AccessDeniedException
- You do not have sufficient access to perform this action.ListProfilesResult listProfiles(ListProfilesRequest listProfilesRequest)
Lists all profiles in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListProfiles
.
listProfilesRequest
- ValidationException
- Validation exception error.AccessDeniedException
- You do not have sufficient access to perform this action.ListSubjectsResult listSubjects(ListSubjectsRequest listSubjectsRequest)
Lists the subjects in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListSubjects
.
listSubjectsRequest
- ValidationException
- Validation exception error.AccessDeniedException
- You do not have sufficient access to perform this action.ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags attached to the resource.
Required permissions: rolesanywhere:ListTagsForResource
.
listTagsForResourceRequest
- ValidationException
- Validation exception error.ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.ListTrustAnchorsResult listTrustAnchors(ListTrustAnchorsRequest listTrustAnchorsRequest)
Lists the trust anchors in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListTrustAnchors
.
listTrustAnchorsRequest
- ValidationException
- Validation exception error.AccessDeniedException
- You do not have sufficient access to perform this action.TagResourceResult tagResource(TagResourceRequest tagResourceRequest)
Attaches tags to a resource.
Required permissions: rolesanywhere:TagResource
.
tagResourceRequest
- ValidationException
- Validation exception error.ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.TooManyTagsException
- Too many tags.UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from the resource.
Required permissions: rolesanywhere:UntagResource
.
untagResourceRequest
- ValidationException
- Validation exception error.ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.UpdateCrlResult updateCrl(UpdateCrlRequest updateCrlRequest)
Updates the certificate revocation list (CRL). CRl is a list of certificates that have been revoked by the issuing certificate Authority (CA). IAM Roles Anywhere validates against the crl list before issuing credentials.
Required permissions: rolesanywhere:UpdateCrl
.
updateCrlRequest
- ValidationException
- Validation exception error.ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.UpdateProfileResult updateProfile(UpdateProfileRequest updateProfileRequest)
Updates the profile. A profile is configuration resource to list the roles that RolesAnywhere service is trusted to assume. In addition, by applying a profile you can scope-down permissions with IAM managed policies.
Required permissions: rolesanywhere:UpdateProfile
.
updateProfileRequest
- ValidationException
- Validation exception error.ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.UpdateTrustAnchorResult updateTrustAnchor(UpdateTrustAnchorRequest updateTrustAnchorRequest)
Updates the trust anchor.You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. A Trust Anchor is defined either as a reference to a AWS Certificate Manager Private Certificate Authority (ACM PCA), or by uploading a Certificate Authority (CA) certificate. Your AWS workloads can authenticate with the trust anchor using certificates issued by the trusted Certificate Authority (CA) in exchange for temporary AWS credentials.
Required permissions: rolesanywhere:UpdateTrustAnchor
.
updateTrustAnchorRequest
- ValidationException
- Validation exception error.ResourceNotFoundException
- The resource could not be found.AccessDeniedException
- You do not have sufficient access to perform this action.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.