@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface RolesAnywhereClient extends SdkClient
builder() method.
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 |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static RolesAnywhereClientBuilder |
builder()
Create a builder that can be used to configure and create a
RolesAnywhereClient. |
static RolesAnywhereClient |
create()
Create a
RolesAnywhereClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CreateProfileResponse |
createProfile(Consumer<CreateProfileRequest.Builder> createProfileRequest)
Creates a profile.
|
default CreateProfileResponse |
createProfile(CreateProfileRequest createProfileRequest)
Creates a profile.
|
default CreateTrustAnchorResponse |
createTrustAnchor(Consumer<CreateTrustAnchorRequest.Builder> createTrustAnchorRequest)
Creates a trust anchor.
|
default CreateTrustAnchorResponse |
createTrustAnchor(CreateTrustAnchorRequest createTrustAnchorRequest)
Creates a trust anchor.
|
default DeleteCrlResponse |
deleteCrl(Consumer<DeleteCrlRequest.Builder> deleteCrlRequest)
Deletes a certificate revocation list (CRL).
|
default DeleteCrlResponse |
deleteCrl(DeleteCrlRequest deleteCrlRequest)
Deletes a certificate revocation list (CRL).
|
default DeleteProfileResponse |
deleteProfile(Consumer<DeleteProfileRequest.Builder> deleteProfileRequest)
Deletes a profile.
|
default DeleteProfileResponse |
deleteProfile(DeleteProfileRequest deleteProfileRequest)
Deletes a profile.
|
default DeleteTrustAnchorResponse |
deleteTrustAnchor(Consumer<DeleteTrustAnchorRequest.Builder> deleteTrustAnchorRequest)
Deletes a trust anchor.
|
default DeleteTrustAnchorResponse |
deleteTrustAnchor(DeleteTrustAnchorRequest deleteTrustAnchorRequest)
Deletes a trust anchor.
|
default DisableCrlResponse |
disableCrl(Consumer<DisableCrlRequest.Builder> disableCrlRequest)
Disables a certificate revocation list (CRL).
|
default DisableCrlResponse |
disableCrl(DisableCrlRequest disableCrlRequest)
Disables a certificate revocation list (CRL).
|
default DisableProfileResponse |
disableProfile(Consumer<DisableProfileRequest.Builder> disableProfileRequest)
Disables a profile.
|
default DisableProfileResponse |
disableProfile(DisableProfileRequest disableProfileRequest)
Disables a profile.
|
default DisableTrustAnchorResponse |
disableTrustAnchor(Consumer<DisableTrustAnchorRequest.Builder> disableTrustAnchorRequest)
Disables a trust anchor.
|
default DisableTrustAnchorResponse |
disableTrustAnchor(DisableTrustAnchorRequest disableTrustAnchorRequest)
Disables a trust anchor.
|
default EnableCrlResponse |
enableCrl(Consumer<EnableCrlRequest.Builder> enableCrlRequest)
Enables a certificate revocation list (CRL).
|
default EnableCrlResponse |
enableCrl(EnableCrlRequest enableCrlRequest)
Enables a certificate revocation list (CRL).
|
default EnableProfileResponse |
enableProfile(Consumer<EnableProfileRequest.Builder> enableProfileRequest)
Enables the roles in a profile to receive session credentials in CreateSession.
|
default EnableProfileResponse |
enableProfile(EnableProfileRequest enableProfileRequest)
Enables the roles in a profile to receive session credentials in CreateSession.
|
default EnableTrustAnchorResponse |
enableTrustAnchor(Consumer<EnableTrustAnchorRequest.Builder> enableTrustAnchorRequest)
Enables a trust anchor.
|
default EnableTrustAnchorResponse |
enableTrustAnchor(EnableTrustAnchorRequest enableTrustAnchorRequest)
Enables a trust anchor.
|
default GetCrlResponse |
getCrl(Consumer<GetCrlRequest.Builder> getCrlRequest)
Gets a certificate revocation list (CRL).
|
default GetCrlResponse |
getCrl(GetCrlRequest getCrlRequest)
Gets a certificate revocation list (CRL).
|
default GetProfileResponse |
getProfile(Consumer<GetProfileRequest.Builder> getProfileRequest)
Gets a profile.
|
default GetProfileResponse |
getProfile(GetProfileRequest getProfileRequest)
Gets a profile.
|
default GetSubjectResponse |
getSubject(Consumer<GetSubjectRequest.Builder> getSubjectRequest)
Gets a Subject.
|
default GetSubjectResponse |
getSubject(GetSubjectRequest getSubjectRequest)
Gets a Subject.
|
default GetTrustAnchorResponse |
getTrustAnchor(Consumer<GetTrustAnchorRequest.Builder> getTrustAnchorRequest)
Gets a trust anchor.
|
default GetTrustAnchorResponse |
getTrustAnchor(GetTrustAnchorRequest getTrustAnchorRequest)
Gets a trust anchor.
|
default ImportCrlResponse |
importCrl(Consumer<ImportCrlRequest.Builder> importCrlRequest)
Imports the certificate revocation list (CRL).
|
default ImportCrlResponse |
importCrl(ImportCrlRequest importCrlRequest)
Imports the certificate revocation list (CRL).
|
default ListCrlsResponse |
listCrls(Consumer<ListCrlsRequest.Builder> listCrlsRequest)
Lists all Crls in the authenticated account and Amazon Web Services Region.
|
default ListCrlsResponse |
listCrls(ListCrlsRequest listCrlsRequest)
Lists all Crls in the authenticated account and Amazon Web Services Region.
|
default ListCrlsIterable |
listCrlsPaginator(Consumer<ListCrlsRequest.Builder> listCrlsRequest)
Lists all Crls in the authenticated account and Amazon Web Services Region.
|
default ListCrlsIterable |
listCrlsPaginator(ListCrlsRequest listCrlsRequest)
Lists all Crls in the authenticated account and Amazon Web Services Region.
|
default ListProfilesResponse |
listProfiles(Consumer<ListProfilesRequest.Builder> listProfilesRequest)
Lists all profiles in the authenticated account and Amazon Web Services Region.
|
default ListProfilesResponse |
listProfiles(ListProfilesRequest listProfilesRequest)
Lists all profiles in the authenticated account and Amazon Web Services Region.
|
default ListProfilesIterable |
listProfilesPaginator(Consumer<ListProfilesRequest.Builder> listProfilesRequest)
Lists all profiles in the authenticated account and Amazon Web Services Region.
|
default ListProfilesIterable |
listProfilesPaginator(ListProfilesRequest listProfilesRequest)
Lists all profiles in the authenticated account and Amazon Web Services Region.
|
default ListSubjectsResponse |
listSubjects(Consumer<ListSubjectsRequest.Builder> listSubjectsRequest)
Lists the subjects in the authenticated account and Amazon Web Services Region.
|
default ListSubjectsResponse |
listSubjects(ListSubjectsRequest listSubjectsRequest)
Lists the subjects in the authenticated account and Amazon Web Services Region.
|
default ListSubjectsIterable |
listSubjectsPaginator(Consumer<ListSubjectsRequest.Builder> listSubjectsRequest)
Lists the subjects in the authenticated account and Amazon Web Services Region.
|
default ListSubjectsIterable |
listSubjectsPaginator(ListSubjectsRequest listSubjectsRequest)
Lists the subjects in the authenticated account and Amazon Web Services Region.
|
default ListTagsForResourceResponse |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Lists the tags attached to the resource.
|
default ListTagsForResourceResponse |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags attached to the resource.
|
default ListTrustAnchorsResponse |
listTrustAnchors(Consumer<ListTrustAnchorsRequest.Builder> listTrustAnchorsRequest)
Lists the trust anchors in the authenticated account and Amazon Web Services Region.
|
default ListTrustAnchorsResponse |
listTrustAnchors(ListTrustAnchorsRequest listTrustAnchorsRequest)
Lists the trust anchors in the authenticated account and Amazon Web Services Region.
|
default ListTrustAnchorsIterable |
listTrustAnchorsPaginator(Consumer<ListTrustAnchorsRequest.Builder> listTrustAnchorsRequest)
Lists the trust anchors in the authenticated account and Amazon Web Services Region.
|
default ListTrustAnchorsIterable |
listTrustAnchorsPaginator(ListTrustAnchorsRequest listTrustAnchorsRequest)
Lists the trust anchors in the authenticated account and Amazon Web Services Region.
|
static ServiceMetadata |
serviceMetadata() |
default TagResourceResponse |
tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Attaches tags to a resource.
|
default TagResourceResponse |
tagResource(TagResourceRequest tagResourceRequest)
Attaches tags to a resource.
|
default UntagResourceResponse |
untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes tags from the resource.
|
default UntagResourceResponse |
untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from the resource.
|
default UpdateCrlResponse |
updateCrl(Consumer<UpdateCrlRequest.Builder> updateCrlRequest)
Updates the certificate revocation list (CRL).
|
default UpdateCrlResponse |
updateCrl(UpdateCrlRequest updateCrlRequest)
Updates the certificate revocation list (CRL).
|
default UpdateProfileResponse |
updateProfile(Consumer<UpdateProfileRequest.Builder> updateProfileRequest)
Updates the profile.
|
default UpdateProfileResponse |
updateProfile(UpdateProfileRequest updateProfileRequest)
Updates the profile.
|
default UpdateTrustAnchorResponse |
updateTrustAnchor(Consumer<UpdateTrustAnchorRequest.Builder> updateTrustAnchorRequest)
Updates the trust anchor.You establish trust between IAM Roles Anywhere and your certificate authority (CA) by
configuring a trust anchor.
|
default UpdateTrustAnchorResponse |
updateTrustAnchor(UpdateTrustAnchorRequest updateTrustAnchorRequest)
Updates the trust anchor.You establish trust between IAM Roles Anywhere and your certificate authority (CA) by
configuring a trust anchor.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CreateProfileResponse createProfile(CreateProfileRequest createProfileRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateProfileResponse createProfile(Consumer<CreateProfileRequest.Builder> createProfileRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.
This is a convenience which creates an instance of the CreateProfileRequest.Builder avoiding the need to
create one manually via CreateProfileRequest.builder()
createProfileRequest - A Consumer that will call methods on CreateProfileRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateTrustAnchorResponse createTrustAnchor(CreateTrustAnchorRequest createTrustAnchorRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault CreateTrustAnchorResponse createTrustAnchor(Consumer<CreateTrustAnchorRequest.Builder> createTrustAnchorRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.
This is a convenience which creates an instance of the CreateTrustAnchorRequest.Builder avoiding the need
to create one manually via CreateTrustAnchorRequest.builder()
createTrustAnchorRequest - A Consumer that will call methods on CreateTrustAnchorRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteCrlResponse deleteCrl(DeleteCrlRequest deleteCrlRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteCrlResponse deleteCrl(Consumer<DeleteCrlRequest.Builder> deleteCrlRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Deletes a certificate revocation list (CRL).
Required permissions: rolesanywhere:DeleteCrl.
This is a convenience which creates an instance of the DeleteCrlRequest.Builder avoiding the need to
create one manually via DeleteCrlRequest.builder()
deleteCrlRequest - A Consumer that will call methods on ScalarCrlRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteProfileResponse deleteProfile(DeleteProfileRequest deleteProfileRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteProfileResponse deleteProfile(Consumer<DeleteProfileRequest.Builder> deleteProfileRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Deletes a profile.
Required permissions: rolesanywhere:DeleteProfile.
This is a convenience which creates an instance of the DeleteProfileRequest.Builder avoiding the need to
create one manually via DeleteProfileRequest.builder()
deleteProfileRequest - A Consumer that will call methods on ScalarProfileRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteTrustAnchorResponse deleteTrustAnchor(DeleteTrustAnchorRequest deleteTrustAnchorRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DeleteTrustAnchorResponse deleteTrustAnchor(Consumer<DeleteTrustAnchorRequest.Builder> deleteTrustAnchorRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Deletes a trust anchor.
Required permissions: rolesanywhere:DeleteTrustAnchor.
This is a convenience which creates an instance of the DeleteTrustAnchorRequest.Builder avoiding the need
to create one manually via DeleteTrustAnchorRequest.builder()
deleteTrustAnchorRequest - A Consumer that will call methods on ScalarTrustAnchorRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableCrlResponse disableCrl(DisableCrlRequest disableCrlRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableCrlResponse disableCrl(Consumer<DisableCrlRequest.Builder> disableCrlRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Disables a certificate revocation list (CRL).
Required permissions: rolesanywhere:DisableCrl.
This is a convenience which creates an instance of the DisableCrlRequest.Builder avoiding the need to
create one manually via DisableCrlRequest.builder()
disableCrlRequest - A Consumer that will call methods on ScalarCrlRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableProfileResponse disableProfile(DisableProfileRequest disableProfileRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableProfileResponse disableProfile(Consumer<DisableProfileRequest.Builder> disableProfileRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Disables a profile. When disabled, CreateSession requests with this profile fail.
Required permissions: rolesanywhere:DisableProfile.
This is a convenience which creates an instance of the DisableProfileRequest.Builder avoiding the need to
create one manually via DisableProfileRequest.builder()
disableProfileRequest - A Consumer that will call methods on ScalarProfileRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableTrustAnchorResponse disableTrustAnchor(DisableTrustAnchorRequest disableTrustAnchorRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault DisableTrustAnchorResponse disableTrustAnchor(Consumer<DisableTrustAnchorRequest.Builder> disableTrustAnchorRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Disables a trust anchor. When disabled, CreateSession requests specifying this trust anchor are unauthorized.
Required permissions: rolesanywhere:DisableTrustAnchor.
This is a convenience which creates an instance of the DisableTrustAnchorRequest.Builder avoiding the
need to create one manually via DisableTrustAnchorRequest.builder()
disableTrustAnchorRequest - A Consumer that will call methods on ScalarTrustAnchorRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableCrlResponse enableCrl(EnableCrlRequest enableCrlRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableCrlResponse enableCrl(Consumer<EnableCrlRequest.Builder> enableCrlRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Enables a certificate revocation list (CRL). When enabled, certificates stored in the CRL are unauthorized to receive session credentials.
Required permissions: rolesanywhere:EnableCrl.
This is a convenience which creates an instance of the EnableCrlRequest.Builder avoiding the need to
create one manually via EnableCrlRequest.builder()
enableCrlRequest - A Consumer that will call methods on ScalarCrlRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableProfileResponse enableProfile(EnableProfileRequest enableProfileRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableProfileResponse enableProfile(Consumer<EnableProfileRequest.Builder> enableProfileRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Enables the roles in a profile to receive session credentials in CreateSession.
Required permissions: rolesanywhere:EnableProfile.
This is a convenience which creates an instance of the EnableProfileRequest.Builder avoiding the need to
create one manually via EnableProfileRequest.builder()
enableProfileRequest - A Consumer that will call methods on ScalarProfileRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableTrustAnchorResponse enableTrustAnchor(EnableTrustAnchorRequest enableTrustAnchorRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault EnableTrustAnchorResponse enableTrustAnchor(Consumer<EnableTrustAnchorRequest.Builder> enableTrustAnchorRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Enables a trust anchor. When enabled, certificates in the trust anchor chain are authorized for trust validation.
Required permissions: rolesanywhere:EnableTrustAnchor.
This is a convenience which creates an instance of the EnableTrustAnchorRequest.Builder avoiding the need
to create one manually via EnableTrustAnchorRequest.builder()
enableTrustAnchorRequest - A Consumer that will call methods on ScalarTrustAnchorRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetCrlResponse getCrl(GetCrlRequest getCrlRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, RolesAnywhereException
Gets a certificate revocation list (CRL).
Required permissions: rolesanywhere:GetCrl.
getCrlRequest - ResourceNotFoundException - The resource could not be found.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetCrlResponse getCrl(Consumer<GetCrlRequest.Builder> getCrlRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, RolesAnywhereException
Gets a certificate revocation list (CRL).
Required permissions: rolesanywhere:GetCrl.
This is a convenience which creates an instance of the GetCrlRequest.Builder avoiding the need to create
one manually via GetCrlRequest.builder()
getCrlRequest - A Consumer that will call methods on ScalarCrlRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetProfileResponse getProfile(GetProfileRequest getProfileRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetProfileResponse getProfile(Consumer<GetProfileRequest.Builder> getProfileRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Gets a profile.
Required permissions: rolesanywhere:GetProfile.
This is a convenience which creates an instance of the GetProfileRequest.Builder avoiding the need to
create one manually via GetProfileRequest.builder()
getProfileRequest - A Consumer that will call methods on ScalarProfileRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetSubjectResponse getSubject(GetSubjectRequest getSubjectRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetSubjectResponse getSubject(Consumer<GetSubjectRequest.Builder> getSubjectRequest) throws ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.
This is a convenience which creates an instance of the GetSubjectRequest.Builder avoiding the need to
create one manually via GetSubjectRequest.builder()
getSubjectRequest - A Consumer that will call methods on ScalarSubjectRequest.Builder to create a request.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetTrustAnchorResponse getTrustAnchor(GetTrustAnchorRequest getTrustAnchorRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault GetTrustAnchorResponse getTrustAnchor(Consumer<GetTrustAnchorRequest.Builder> getTrustAnchorRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Gets a trust anchor.
Required permissions: rolesanywhere:GetTrustAnchor.
This is a convenience which creates an instance of the GetTrustAnchorRequest.Builder avoiding the need to
create one manually via GetTrustAnchorRequest.builder()
getTrustAnchorRequest - A Consumer that will call methods on ScalarTrustAnchorRequest.Builder to create a request.ValidationException - Validation exception error.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ImportCrlResponse importCrl(ImportCrlRequest importCrlRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ImportCrlResponse importCrl(Consumer<ImportCrlRequest.Builder> importCrlRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.
This is a convenience which creates an instance of the ImportCrlRequest.Builder avoiding the need to
create one manually via ImportCrlRequest.builder()
importCrlRequest - A Consumer that will call methods on ImportCrlRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListCrlsResponse listCrls(ListCrlsRequest listCrlsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListCrlsResponse listCrls(Consumer<ListCrlsRequest.Builder> listCrlsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists all Crls in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListCrls.
This is a convenience which creates an instance of the ListCrlsRequest.Builder avoiding the need to
create one manually via ListCrlsRequest.builder()
listCrlsRequest - A Consumer that will call methods on ListRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListCrlsIterable listCrlsPaginator(ListCrlsRequest listCrlsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists all Crls in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListCrls.
This is a variant of listCrls(software.amazon.awssdk.services.rolesanywhere.model.ListCrlsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.rolesanywhere.paginators.ListCrlsIterable responses = client.listCrlsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.rolesanywhere.paginators.ListCrlsIterable responses = client.listCrlsPaginator(request);
for (software.amazon.awssdk.services.rolesanywhere.model.ListCrlsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.rolesanywhere.paginators.ListCrlsIterable responses = client.listCrlsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCrls(software.amazon.awssdk.services.rolesanywhere.model.ListCrlsRequest) operation.
listCrlsRequest - ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListCrlsIterable listCrlsPaginator(Consumer<ListCrlsRequest.Builder> listCrlsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists all Crls in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListCrls.
This is a variant of listCrls(software.amazon.awssdk.services.rolesanywhere.model.ListCrlsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.rolesanywhere.paginators.ListCrlsIterable responses = client.listCrlsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.rolesanywhere.paginators.ListCrlsIterable responses = client.listCrlsPaginator(request);
for (software.amazon.awssdk.services.rolesanywhere.model.ListCrlsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.rolesanywhere.paginators.ListCrlsIterable responses = client.listCrlsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCrls(software.amazon.awssdk.services.rolesanywhere.model.ListCrlsRequest) operation.
This is a convenience which creates an instance of the ListCrlsRequest.Builder avoiding the need to
create one manually via ListCrlsRequest.builder()
listCrlsRequest - A Consumer that will call methods on ListRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProfilesResponse listProfiles(ListProfilesRequest listProfilesRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProfilesResponse listProfiles(Consumer<ListProfilesRequest.Builder> listProfilesRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists all profiles in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListProfiles.
This is a convenience which creates an instance of the ListProfilesRequest.Builder avoiding the need to
create one manually via ListProfilesRequest.builder()
listProfilesRequest - A Consumer that will call methods on ListRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProfilesIterable listProfilesPaginator(ListProfilesRequest listProfilesRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists all profiles in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListProfiles.
This is a variant of
listProfiles(software.amazon.awssdk.services.rolesanywhere.model.ListProfilesRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.rolesanywhere.paginators.ListProfilesIterable responses = client.listProfilesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.rolesanywhere.paginators.ListProfilesIterable responses = client
.listProfilesPaginator(request);
for (software.amazon.awssdk.services.rolesanywhere.model.ListProfilesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.rolesanywhere.paginators.ListProfilesIterable responses = client.listProfilesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProfiles(software.amazon.awssdk.services.rolesanywhere.model.ListProfilesRequest) operation.
listProfilesRequest - ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListProfilesIterable listProfilesPaginator(Consumer<ListProfilesRequest.Builder> listProfilesRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists all profiles in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListProfiles.
This is a variant of
listProfiles(software.amazon.awssdk.services.rolesanywhere.model.ListProfilesRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.rolesanywhere.paginators.ListProfilesIterable responses = client.listProfilesPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.rolesanywhere.paginators.ListProfilesIterable responses = client
.listProfilesPaginator(request);
for (software.amazon.awssdk.services.rolesanywhere.model.ListProfilesResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.rolesanywhere.paginators.ListProfilesIterable responses = client.listProfilesPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProfiles(software.amazon.awssdk.services.rolesanywhere.model.ListProfilesRequest) operation.
This is a convenience which creates an instance of the ListProfilesRequest.Builder avoiding the need to
create one manually via ListProfilesRequest.builder()
listProfilesRequest - A Consumer that will call methods on ListRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListSubjectsResponse listSubjects(ListSubjectsRequest listSubjectsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListSubjectsResponse listSubjects(Consumer<ListSubjectsRequest.Builder> listSubjectsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists the subjects in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListSubjects.
This is a convenience which creates an instance of the ListSubjectsRequest.Builder avoiding the need to
create one manually via ListSubjectsRequest.builder()
listSubjectsRequest - A Consumer that will call methods on ListRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListSubjectsIterable listSubjectsPaginator(ListSubjectsRequest listSubjectsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists the subjects in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListSubjects.
This is a variant of
listSubjects(software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.rolesanywhere.paginators.ListSubjectsIterable responses = client.listSubjectsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.rolesanywhere.paginators.ListSubjectsIterable responses = client
.listSubjectsPaginator(request);
for (software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.rolesanywhere.paginators.ListSubjectsIterable responses = client.listSubjectsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSubjects(software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsRequest) operation.
listSubjectsRequest - ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListSubjectsIterable listSubjectsPaginator(Consumer<ListSubjectsRequest.Builder> listSubjectsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists the subjects in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListSubjects.
This is a variant of
listSubjects(software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.rolesanywhere.paginators.ListSubjectsIterable responses = client.listSubjectsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.rolesanywhere.paginators.ListSubjectsIterable responses = client
.listSubjectsPaginator(request);
for (software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.rolesanywhere.paginators.ListSubjectsIterable responses = client.listSubjectsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSubjects(software.amazon.awssdk.services.rolesanywhere.model.ListSubjectsRequest) operation.
This is a convenience which creates an instance of the ListSubjectsRequest.Builder avoiding the need to
create one manually via ListSubjectsRequest.builder()
listSubjectsRequest - A Consumer that will call methods on ListRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists the tags attached to the resource.
Required permissions: rolesanywhere:ListTagsForResource.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a
request.ValidationException - Validation exception error.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTrustAnchorsResponse listTrustAnchors(ListTrustAnchorsRequest listTrustAnchorsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTrustAnchorsResponse listTrustAnchors(Consumer<ListTrustAnchorsRequest.Builder> listTrustAnchorsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists the trust anchors in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListTrustAnchors.
This is a convenience which creates an instance of the ListTrustAnchorsRequest.Builder avoiding the need
to create one manually via ListTrustAnchorsRequest.builder()
listTrustAnchorsRequest - A Consumer that will call methods on ListRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTrustAnchorsIterable listTrustAnchorsPaginator(ListTrustAnchorsRequest listTrustAnchorsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists the trust anchors in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListTrustAnchors.
This is a variant of
listTrustAnchors(software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.rolesanywhere.paginators.ListTrustAnchorsIterable responses = client.listTrustAnchorsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.rolesanywhere.paginators.ListTrustAnchorsIterable responses = client
.listTrustAnchorsPaginator(request);
for (software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.rolesanywhere.paginators.ListTrustAnchorsIterable responses = client.listTrustAnchorsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTrustAnchors(software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsRequest)
operation.
listTrustAnchorsRequest - ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault ListTrustAnchorsIterable listTrustAnchorsPaginator(Consumer<ListTrustAnchorsRequest.Builder> listTrustAnchorsRequest) throws ValidationException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Lists the trust anchors in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListTrustAnchors.
This is a variant of
listTrustAnchors(software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.rolesanywhere.paginators.ListTrustAnchorsIterable responses = client.listTrustAnchorsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.rolesanywhere.paginators.ListTrustAnchorsIterable responses = client
.listTrustAnchorsPaginator(request);
for (software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.rolesanywhere.paginators.ListTrustAnchorsIterable responses = client.listTrustAnchorsPaginator(request);
responses.iterator().forEachRemaining(....);
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listTrustAnchors(software.amazon.awssdk.services.rolesanywhere.model.ListTrustAnchorsRequest)
operation.
This is a convenience which creates an instance of the ListTrustAnchorsRequest.Builder avoiding the need
to create one manually via ListTrustAnchorsRequest.builder()
listTrustAnchorsRequest - A Consumer that will call methods on ListRequest.Builder to create a request.ValidationException - Validation exception error.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyTagsException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, TooManyTagsException, AwsServiceException, SdkClientException, RolesAnywhereException
Attaches tags to a resource.
Required permissions: rolesanywhere:TagResource.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
Removes tags from the resource.
Required permissions: rolesanywhere:UntagResource.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.ValidationException - Validation exception error.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateCrlResponse updateCrl(UpdateCrlRequest updateCrlRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateCrlResponse updateCrl(Consumer<UpdateCrlRequest.Builder> updateCrlRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.
This is a convenience which creates an instance of the UpdateCrlRequest.Builder avoiding the need to
create one manually via UpdateCrlRequest.builder()
updateCrlRequest - A Consumer that will call methods on UpdateCrlRequest.Builder to create a request.ValidationException - Validation exception error.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateProfileResponse updateProfile(UpdateProfileRequest updateProfileRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateProfileResponse updateProfile(Consumer<UpdateProfileRequest.Builder> updateProfileRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.
This is a convenience which creates an instance of the UpdateProfileRequest.Builder avoiding the need to
create one manually via UpdateProfileRequest.builder()
updateProfileRequest - A Consumer that will call methods on UpdateProfileRequest.Builder to create a request.ValidationException - Validation exception error.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateTrustAnchorResponse updateTrustAnchor(UpdateTrustAnchorRequest updateTrustAnchorRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault UpdateTrustAnchorResponse updateTrustAnchor(Consumer<UpdateTrustAnchorRequest.Builder> updateTrustAnchorRequest) throws ValidationException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, RolesAnywhereException
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.
This is a convenience which creates an instance of the UpdateTrustAnchorRequest.Builder avoiding the need
to create one manually via UpdateTrustAnchorRequest.builder()
updateTrustAnchorRequest - A Consumer that will call methods on UpdateTrustAnchorRequest.Builder to create a request.ValidationException - Validation exception error.ResourceNotFoundException - The resource could not be found.AccessDeniedException - You do not have sufficient access to perform this action.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.RolesAnywhereException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic RolesAnywhereClient create()
RolesAnywhereClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static RolesAnywhereClientBuilder builder()
RolesAnywhereClient.static ServiceMetadata serviceMetadata()
Copyright © 2023. All rights reserved.