- Navigation GuideYou are on a Client landing page. Commands (operations) are listed on this page. The Client constructor type is linked at the bottom.
RolesAnywhereClient
Identity and Access Management Roles Anywhere provides a secure way for your workloads such as servers, containers, and applications that run outside of Amazon Web Services to obtain temporary Amazon Web Services credentials. Your workloads can use the same IAM policies and roles you have for native Amazon Web Services applications to access Amazon Web Services resources. Using IAM Roles Anywhere eliminates the need to manage long-term credentials for workloads running outside of Amazon Web Services.
To use IAM Roles Anywhere, your workloads must use X.509 certificates issued by their certificate authority (CA). You register the CA with IAM Roles Anywhere as a trust anchor to establish trust between your public key infrastructure (PKI) and IAM Roles Anywhere. If you don't manage your own PKI system, you can use Private Certificate Authority to create a CA and then use that to establish trust with IAM Roles Anywhere.
This guide describes the IAM Roles Anywhere operations that you can call programmatically. For more information about IAM Roles Anywhere, see the IAM Roles Anywhere User Guide .
Installation
npm install @aws-sdk/client-rolesanywhere
yarn add @aws-sdk/client-rolesanywhere
pnpm add @aws-sdk/client-rolesanywhere
RolesAnywhereClient Operations
Command | Summary |
---|
Command | Summary |
---|---|
CreateProfileCommand | Creates a profile, a list of the roles that Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies. Required permissions: |
CreateTrustAnchorCommand | Creates a trust anchor to establish trust between IAM Roles Anywhere and your certificate authority (CA). You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials. Required permissions: |
DeleteAttributeMappingCommand | Delete an entry from the attribute mapping rules enforced by a given profile. |
DeleteCrlCommand | Deletes a certificate revocation list (CRL). Required permissions: |
DeleteProfileCommand | Deletes a profile. Required permissions: |
DeleteTrustAnchorCommand | Deletes a trust anchor. Required permissions: |
DisableCrlCommand | Disables a certificate revocation list (CRL). Required permissions: |
DisableProfileCommand | Disables a profile. When disabled, temporary credential requests with this profile fail. Required permissions: |
DisableTrustAnchorCommand | Disables a trust anchor. When disabled, temporary credential requests specifying this trust anchor are unauthorized. Required permissions: |
EnableCrlCommand | Enables a certificate revocation list (CRL). When enabled, certificates stored in the CRL are unauthorized to receive session credentials. Required permissions: |
EnableProfileCommand | Enables temporary credential requests for a profile. Required permissions: |
EnableTrustAnchorCommand | Enables a trust anchor. When enabled, certificates in the trust anchor chain are authorized for trust validation. Required permissions: |
GetCrlCommand | Gets a certificate revocation list (CRL). Required permissions: |
GetProfileCommand | Gets a profile. Required permissions: |
GetSubjectCommand | Gets a subject, which associates a certificate identity with authentication attempts. The subject stores auditing information such as the status of the last authentication attempt, the certificate data used in the attempt, and the last time the associated identity attempted authentication. Required permissions: |
GetTrustAnchorCommand | Gets a trust anchor. Required permissions: |
ImportCrlCommand | Imports the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate Authority (CA).In order to be properly imported, a CRL must be in PEM format. IAM Roles Anywhere validates against the CRL before issuing credentials. Required permissions: |
ListCrlsCommand | Lists all certificate revocation lists (CRL) in the authenticated account and Amazon Web Services Region. Required permissions: |
ListProfilesCommand | Lists all profiles in the authenticated account and Amazon Web Services Region. Required permissions: |
ListSubjectsCommand | Lists the subjects in the authenticated account and Amazon Web Services Region. Required permissions: |
ListTagsForResourceCommand | Lists the tags attached to the resource. Required permissions: |
ListTrustAnchorsCommand | Lists the trust anchors in the authenticated account and Amazon Web Services Region. Required permissions: |
PutAttributeMappingCommand | Put an entry in the attribute mapping rules that will be enforced by a given profile. A mapping specifies a certificate field and one or more specifiers that have contextual meanings. |
PutNotificationSettingsCommand | Attaches a list of notification settings to a trust anchor. A notification setting includes information such as event name, threshold, status of the notification setting, and the channel to notify. Required permissions: |
ResetNotificationSettingsCommand | Resets the custom notification setting to IAM Roles Anywhere default setting. Required permissions: |
TagResourceCommand | Attaches tags to a resource. Required permissions: |
UntagResourceCommand | Removes tags from the resource. Required permissions: |
UpdateCrlCommand | Updates the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials. Required permissions: |
UpdateProfileCommand | Updates a profile, a list of the roles that IAM Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies. Required permissions: |
UpdateTrustAnchorCommand | Updates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials. Required permissions: |
RolesAnywhereClient Configuration
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
defaultsMode Optional | DefaultsMode | Provider<DefaultsMode> | The @smithy/smithy-client#DefaultsMode that will be used to determine how certain default configuration options are resolved in the SDK. |
disableHostPrefix Optional | boolean | Disable dynamically changing the endpoint of the client based on the hostPrefix trait of an operation. |
extensions Optional | RuntimeExtension[] | Optional extensions |
logger Optional | Logger | Optional logger for logging debug/info/warn/error. |
maxAttempts Optional | number | Provider<number> | Value for how many times a request will be made at most in case of retry. |
profile Optional | string | Setting a client profile is similar to setting a value for the AWS_PROFILE environment variable. Setting a profile on a client in code only affects the single client instance, unlike AWS_PROFILE.When set, and only for environments where an AWS configuration file exists, fields configurable by this file will be retrieved from the specified profile within that file. Conflicting code configuration and environment variables will still have higher priority.For client credential resolution that involves checking the AWS configuration file, the client's profile (this value) will be used unless a different profile is set in the credential provider options. |
region Optional | string | Provider<string> | The AWS region to which this client will send requests |
requestHandler Optional | __HttpHandlerUserInput | The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs. |
retryMode Optional | string | Provider<string> | Specifies which retry algorithm to use. |
useDualstackEndpoint Optional | boolean | Provider<boolean> | Enables IPv6/IPv4 dualstack endpoint. |
useFipsEndpoint Optional | boolean | Provider<boolean> | Enables FIPS compatible endpoints. |
Additional config fields are described in the full configuration type: RolesAnywhereClientConfig