UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 18.9 kB
{"openapi":"3.0.0","info":{"version":"2019-06-10","x-release":"v4","title":"AWS Single Sign-On","description":"<p>AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to IAM Identity Center resources such as the AWS access portal. Users can get AWS account applications and roles assigned to them and get federated into the application.</p> <note> <p>Although AWS Single Sign-On was renamed, the <code>sso</code> and <code>identitystore</code> API namespaces will continue to retain their original name for backward compatibility purposes. For more information, see <a href=\"https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed\">IAM Identity Center rename</a>.</p> </note> <p>This reference guide describes the IAM Identity Center Portal operations that you can call programatically and includes detailed information on data types and errors.</p> <note> <p>AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a convenient way to create programmatic access to IAM Identity Center and other AWS services. For more information about the AWS SDKs, including how to download and install them, see <a href=\"http://aws.amazon.com/tools/\">Tools for Amazon Web Services</a>.</p> </note>","x-logo":{"url":"https://twitter.com/awscloud/profile_image?size=original","backgroundColor":"#FFFFFF"},"termsOfService":"https://aws.amazon.com/service-terms/","contact":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com","url":"https://github.com/mermade/aws2openapi","x-twitter":"PermittedSoc"},"license":{"name":"Apache 2.0 License","url":"http://www.apache.org/licenses/"},"x-providerName":"amazonaws.com","x-serviceName":"sso","x-aws-signingName":"awsssoportal","x-origin":[{"contentType":"application/json","url":"https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/sso-2019-06-10.normal.json","converter":{"url":"https://github.com/mermade/aws2openapi","version":"1.0.0"},"x-apisguru-driver":"external"}],"x-apiClientRegistration":{"url":"https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct"},"x-apisguru-categories":["cloud"],"x-preferred":true},"externalDocs":{"description":"Amazon Web Services documentation","url":"https://docs.aws.amazon.com/sso/"},"servers":[{"url":"http://portal.sso.{region}.amazonaws.com","variables":{"region":{"description":"The AWS region","enum":["us-east-1","us-east-2","us-west-1","us-west-2","us-gov-west-1","us-gov-east-1","ca-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","eu-central-1","eu-south-1","af-south-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-southeast-1","ap-southeast-2","ap-east-1","ap-south-1","sa-east-1","me-south-1"],"default":"us-east-1"}},"description":"The SSO multi-region endpoint"},{"url":"https://portal.sso.{region}.amazonaws.com","variables":{"region":{"description":"The AWS region","enum":["us-east-1","us-east-2","us-west-1","us-west-2","us-gov-west-1","us-gov-east-1","ca-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","eu-central-1","eu-south-1","af-south-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-southeast-1","ap-southeast-2","ap-east-1","ap-south-1","sa-east-1","me-south-1"],"default":"us-east-1"}},"description":"The SSO multi-region endpoint"},{"url":"http://portal.sso.{region}.amazonaws.com.cn","variables":{"region":{"description":"The AWS region","enum":["cn-north-1","cn-northwest-1"],"default":"cn-north-1"}},"description":"The SSO endpoint for China (Beijing) and China (Ningxia)"},{"url":"https://portal.sso.{region}.amazonaws.com.cn","variables":{"region":{"description":"The AWS region","enum":["cn-north-1","cn-northwest-1"],"default":"cn-north-1"}},"description":"The SSO endpoint for China (Beijing) and China (Ningxia)"}],"paths":{"/federation/credentials#role_name&account_id&x-amz-sso_bearer_token":{"get":{"operationId":"GetRoleCredentials","description":"Returns the STS short-term credentials for a given role name that is assigned to the user.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetRoleCredentialsResponse"}}}},"480":{"description":"InvalidRequestException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestException"}}}},"481":{"description":"UnauthorizedException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedException"}}}},"482":{"description":"TooManyRequestsException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsException"}}}},"483":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}}},"parameters":[{"name":"role_name","in":"query","required":true,"description":"The friendly name of the role that is assigned to the user.","schema":{"type":"string"}},{"name":"account_id","in":"query","required":true,"description":"The identifier for the AWS account that is assigned to the user.","schema":{"type":"string"}},{"name":"x-amz-sso_bearer_token","in":"header","required":true,"description":"The token issued by the <code>CreateToken</code> API call. For more information, see <a href=\"https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html\">CreateToken</a> in the <i>IAM Identity Center OIDC API Reference Guide</i>.","schema":{"type":"string","format":"password"}}]},"parameters":[{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/assignment/roles#x-amz-sso_bearer_token&account_id":{"get":{"operationId":"ListAccountRoles","description":"Lists all roles that are assigned to the user for a given AWS account.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAccountRolesResponse"}}}},"480":{"description":"InvalidRequestException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestException"}}}},"481":{"description":"UnauthorizedException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedException"}}}},"482":{"description":"TooManyRequestsException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsException"}}}},"483":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}}},"parameters":[{"name":"next_token","in":"query","required":false,"description":"The page token from the previous response output when you request subsequent pages.","schema":{"type":"string"}},{"name":"max_result","in":"query","required":false,"description":"The number of items that clients can request per page.","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"x-amz-sso_bearer_token","in":"header","required":true,"description":"The token issued by the <code>CreateToken</code> API call. For more information, see <a href=\"https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html\">CreateToken</a> in the <i>IAM Identity Center OIDC API Reference Guide</i>.","schema":{"type":"string","format":"password"}},{"name":"account_id","in":"query","required":true,"description":"The identifier for the AWS account that is assigned to the user.","schema":{"type":"string"}},{"name":"maxResults","in":"query","schema":{"type":"string"},"description":"Pagination limit","required":false},{"name":"nextToken","in":"query","schema":{"type":"string"},"description":"Pagination token","required":false}]},"parameters":[{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/assignment/accounts#x-amz-sso_bearer_token":{"get":{"operationId":"ListAccounts","description":"Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the account. For more information, see <a href=\"https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers\">Assign User Access</a> in the <i>IAM Identity Center User Guide</i>. This operation returns a paginated response.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAccountsResponse"}}}},"480":{"description":"InvalidRequestException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestException"}}}},"481":{"description":"UnauthorizedException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedException"}}}},"482":{"description":"TooManyRequestsException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsException"}}}},"483":{"description":"ResourceNotFoundException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceNotFoundException"}}}}},"parameters":[{"name":"next_token","in":"query","required":false,"description":"(Optional) When requesting subsequent pages, this is the page token from the previous response output.","schema":{"type":"string"}},{"name":"max_result","in":"query","required":false,"description":"This is the number of items clients can request per page.","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"x-amz-sso_bearer_token","in":"header","required":true,"description":"The token issued by the <code>CreateToken</code> API call. For more information, see <a href=\"https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html\">CreateToken</a> in the <i>IAM Identity Center OIDC API Reference Guide</i>.","schema":{"type":"string","format":"password"}},{"name":"maxResults","in":"query","schema":{"type":"string"},"description":"Pagination limit","required":false},{"name":"nextToken","in":"query","schema":{"type":"string"},"description":"Pagination token","required":false}]},"parameters":[{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/logout#x-amz-sso_bearer_token":{"post":{"operationId":"Logout","description":"<p>Removes the locally stored SSO tokens from the client-side cache and sends an API call to the IAM Identity Center service to invalidate the corresponding server-side IAM Identity Center sign in session.</p> <note> <p>If a user uses IAM Identity Center to access the AWS CLI, the user’s IAM Identity Center sign in session is used to obtain an IAM session, as specified in the corresponding IAM Identity Center permission set. More specifically, IAM Identity Center assumes an IAM role in the target account on behalf of the user, and the corresponding temporary AWS credentials are returned to the client.</p> <p>After user logout, any existing IAM role sessions that were created by using IAM Identity Center permission sets continue based on the duration configured in the permission set. For more information, see <a href=\"https://docs.aws.amazon.com/singlesignon/latest/userguide/authconcept.html\">User authentications</a> in the <i>IAM Identity Center User Guide</i>.</p> </note>","responses":{"200":{"description":"Success"},"480":{"description":"InvalidRequestException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestException"}}}},"481":{"description":"UnauthorizedException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedException"}}}},"482":{"description":"TooManyRequestsException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TooManyRequestsException"}}}}},"parameters":[{"name":"x-amz-sso_bearer_token","in":"header","required":true,"description":"The token issued by the <code>CreateToken</code> API call. For more information, see <a href=\"https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html\">CreateToken</a> in the <i>IAM Identity Center OIDC API Reference Guide</i>.","schema":{"type":"string","format":"password"}}]},"parameters":[{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]}},"components":{"parameters":{"X-Amz-Content-Sha256":{"name":"X-Amz-Content-Sha256","in":"header","schema":{"type":"string"},"required":false},"X-Amz-Date":{"name":"X-Amz-Date","in":"header","schema":{"type":"string"},"required":false},"X-Amz-Algorithm":{"name":"X-Amz-Algorithm","in":"header","schema":{"type":"string"},"required":false},"X-Amz-Credential":{"name":"X-Amz-Credential","in":"header","schema":{"type":"string"},"required":false},"X-Amz-Security-Token":{"name":"X-Amz-Security-Token","in":"header","schema":{"type":"string"},"required":false},"X-Amz-Signature":{"name":"X-Amz-Signature","in":"header","schema":{"type":"string"},"required":false},"X-Amz-SignedHeaders":{"name":"X-Amz-SignedHeaders","in":"header","schema":{"type":"string"},"required":false}},"securitySchemes":{"hmac":{"type":"apiKey","name":"Authorization","in":"header","description":"Amazon Signature authorization v4","x-amazon-apigateway-authtype":"awsSigv4"}},"schemas":{"GetRoleCredentialsResponse":{"type":"object","properties":{"roleCredentials":{"allOf":[{"$ref":"#/components/schemas/RoleCredentials"},{"description":"The credentials for the role that is assigned to the user."}]}}},"InvalidRequestException":{},"UnauthorizedException":{},"TooManyRequestsException":{},"ResourceNotFoundException":{},"ListAccountRolesResponse":{"type":"object","properties":{"nextToken":{"allOf":[{"$ref":"#/components/schemas/NextTokenType"},{"description":"The page token client that is used to retrieve the list of accounts."}]},"roleList":{"allOf":[{"$ref":"#/components/schemas/RoleListType"},{"description":"A paginated response with the list of roles and the next token if more results are available."}]}}},"ListAccountsResponse":{"type":"object","properties":{"nextToken":{"allOf":[{"$ref":"#/components/schemas/NextTokenType"},{"description":"The page token client that is used to retrieve the list of accounts."}]},"accountList":{"allOf":[{"$ref":"#/components/schemas/AccountListType"},{"description":"A paginated response with the list of account information and the next token if more results are available."}]}}},"AccessKeyType":{"type":"string"},"AccessTokenType":{"type":"string","format":"password"},"AccountIdType":{"type":"string"},"AccountNameType":{"type":"string"},"EmailAddressType":{"type":"string","minLength":1,"maxLength":254},"AccountInfo":{"type":"object","properties":{"accountId":{"allOf":[{"$ref":"#/components/schemas/AccountIdType"},{"description":"The identifier of the AWS account that is assigned to the user."}]},"accountName":{"allOf":[{"$ref":"#/components/schemas/AccountNameType"},{"description":"The display name of the AWS account that is assigned to the user."}]},"emailAddress":{"allOf":[{"$ref":"#/components/schemas/EmailAddressType"},{"description":"The email address of the AWS account that is assigned to the user."}]}},"description":"Provides information about your AWS account."},"AccountListType":{"type":"array","items":{"$ref":"#/components/schemas/AccountInfo"}},"ExpirationTimestampType":{"type":"integer"},"RoleNameType":{"type":"string"},"GetRoleCredentialsRequest":{"type":"object","title":"GetRoleCredentialsRequest","properties":{}},"RoleCredentials":{"type":"object","properties":{"accessKeyId":{"allOf":[{"$ref":"#/components/schemas/AccessKeyType"},{"description":"The identifier used for the temporary security credentials. For more information, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html\">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the <i>AWS IAM User Guide</i>."}]},"secretAccessKey":{"allOf":[{"$ref":"#/components/schemas/SecretAccessKeyType"},{"description":"The key that is used to sign the request. For more information, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html\">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the <i>AWS IAM User Guide</i>."}]},"sessionToken":{"allOf":[{"$ref":"#/components/schemas/SessionTokenType"},{"description":"The token used for temporary credentials. For more information, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html\">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the <i>AWS IAM User Guide</i>."}]},"expiration":{"allOf":[{"$ref":"#/components/schemas/ExpirationTimestampType"},{"description":"The date on which temporary security credentials expire."}]}},"description":"Provides information about the role credentials that are assigned to the user."},"NextTokenType":{"type":"string"},"MaxResultType":{"type":"integer","minimum":1,"maximum":100},"ListAccountRolesRequest":{"type":"object","title":"ListAccountRolesRequest","properties":{}},"RoleListType":{"type":"array","items":{"$ref":"#/components/schemas/RoleInfo"}},"ListAccountsRequest":{"type":"object","title":"ListAccountsRequest","properties":{}},"LogoutRequest":{"type":"object","title":"LogoutRequest","properties":{}},"SecretAccessKeyType":{"type":"string","format":"password"},"SessionTokenType":{"type":"string","format":"password"},"RoleInfo":{"type":"object","properties":{"roleName":{"allOf":[{"$ref":"#/components/schemas/RoleNameType"},{"description":"The friendly name of the role that is assigned to the user."}]},"accountId":{"allOf":[{"$ref":"#/components/schemas/AccountIdType"},{"description":"The identifier of the AWS account assigned to the user."}]}},"description":"Provides information about the role that is assigned to the user."}}},"security":[{"hmac":[]}]}