Class: AWS.SSO
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.SSO
- Identifier:
- sso
- API Version:
- 2019-06-10
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
AWS Single Sign-On Portal is a web service that makes it easy for you to assign user access to AWS SSO resources such as the user portal. Users can get AWS account applications and roles assigned to them and get federated into the application.
For general information about AWS SSO, see What is AWS Single Sign-On? in the AWS SSO User Guide.
This API reference guide describes the AWS SSO Portal operations that you can call programatically and includes detailed information on data types and errors.
Sending a Request Using SSO
var sso = new AWS.SSO();
sso.getRoleCredentials(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the SSO object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var sso = new AWS.SSO({apiVersion: '2019-06-10'});
You can also set the API version globally in AWS.config.apiVersions
using
the sso service identifier:
AWS.config.apiVersions = {
sso: '2019-06-10',
// other service API versions
};
var sso = new AWS.SSO();
Constructor Summary collapse
-
new AWS.SSO(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
getRoleCredentials(params = {}, callback) ⇒ AWS.Request
Returns the STS short-term credentials for a given role name that is assigned to the user.
.
-
listAccountRoles(params = {}, callback) ⇒ AWS.Request
Lists all roles that are assigned to the user for a given AWS account.
.
-
listAccounts(params = {}, callback) ⇒ AWS.Request
Lists all AWS accounts assigned to the user.
-
logout(params = {}, callback) ⇒ AWS.Request
Removes the client- and server-side session that is associated with the user.
.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.SSO(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
getRoleCredentials(params = {}, callback) ⇒ AWS.Request
Returns the STS short-term credentials for a given role name that is assigned to the user.
listAccountRoles(params = {}, callback) ⇒ AWS.Request
Lists all roles that are assigned to the user for a given AWS account.
listAccounts(params = {}, callback) ⇒ AWS.Request
Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the account. For more information, see Assign User Access in the AWS SSO User Guide. This operation returns a paginated response.