{ "version":"2.0", "metadata":{ "apiVersion":"2011-06-15", "endpointPrefix":"sts", "globalEndpoint":"sts.amazonaws.com", "serviceAbbreviation":"AWS STS", "serviceFullName":"AWS Security Token Service", "signatureVersion":"v4", "xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/", "protocol":"query" }, "operations":{ "AssumeRole":{ "name":"AssumeRole", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"AssumeRoleRequest"}, "output":{ "shape":"AssumeRoleResponse", "resultWrapper":"AssumeRoleResult" }, "errors":[ { "shape":"MalformedPolicyDocumentException", "error":{ "code":"MalformedPolicyDocument", "httpStatusCode":400, "senderFault":true }, "exception":true }, { "shape":"PackedPolicyTooLargeException", "error":{ "code":"PackedPolicyTooLarge", "httpStatusCode":400, "senderFault":true }, "exception":true } ] }, "AssumeRoleWithSAML":{ "name":"AssumeRoleWithSAML", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"AssumeRoleWithSAMLRequest"}, "output":{ "shape":"AssumeRoleWithSAMLResponse", "resultWrapper":"AssumeRoleWithSAMLResult" }, "errors":[ { "shape":"MalformedPolicyDocumentException", "error":{ "code":"MalformedPolicyDocument", "httpStatusCode":400, "senderFault":true }, "exception":true }, { "shape":"PackedPolicyTooLargeException", "error":{ "code":"PackedPolicyTooLarge", "httpStatusCode":400, "senderFault":true }, "exception":true }, { "shape":"IDPRejectedClaimException", "error":{ "code":"IDPRejectedClaim", "httpStatusCode":403, "senderFault":true }, "exception":true }, { "shape":"InvalidIdentityTokenException", "error":{ "code":"InvalidIdentityToken", "httpStatusCode":400, "senderFault":true }, "exception":true }, { "shape":"ExpiredTokenException", "error":{ "code":"ExpiredTokenException", "httpStatusCode":400, "senderFault":true }, "exception":true } ] }, "AssumeRoleWithWebIdentity":{ "name":"AssumeRoleWithWebIdentity", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"AssumeRoleWithWebIdentityRequest"}, "output":{ "shape":"AssumeRoleWithWebIdentityResponse", "resultWrapper":"AssumeRoleWithWebIdentityResult" }, "errors":[ { "shape":"MalformedPolicyDocumentException", "error":{ "code":"MalformedPolicyDocument", "httpStatusCode":400, "senderFault":true }, "exception":true }, { "shape":"PackedPolicyTooLargeException", "error":{ "code":"PackedPolicyTooLarge", "httpStatusCode":400, "senderFault":true }, "exception":true }, { "shape":"IDPRejectedClaimException", "error":{ "code":"IDPRejectedClaim", "httpStatusCode":403, "senderFault":true }, "exception":true }, { "shape":"IDPCommunicationErrorException", "error":{ "code":"IDPCommunicationError", "httpStatusCode":400, "senderFault":true }, "exception":true }, { "shape":"InvalidIdentityTokenException", "error":{ "code":"InvalidIdentityToken", "httpStatusCode":400, "senderFault":true }, "exception":true }, { "shape":"ExpiredTokenException", "error":{ "code":"ExpiredTokenException", "httpStatusCode":400, "senderFault":true }, "exception":true } ] }, "DecodeAuthorizationMessage":{ "name":"DecodeAuthorizationMessage", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DecodeAuthorizationMessageRequest"}, "output":{ "shape":"DecodeAuthorizationMessageResponse", "resultWrapper":"DecodeAuthorizationMessageResult" }, "errors":[ { "shape":"InvalidAuthorizationMessageException", "error":{ "code":"InvalidAuthorizationMessageException", "httpStatusCode":400, "senderFault":true }, "exception":true } ] }, "GetFederationToken":{ "name":"GetFederationToken", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetFederationTokenRequest"}, "output":{ "shape":"GetFederationTokenResponse", "resultWrapper":"GetFederationTokenResult" }, "errors":[ { "shape":"MalformedPolicyDocumentException", "error":{ "code":"MalformedPolicyDocument", "httpStatusCode":400, "senderFault":true }, "exception":true }, { "shape":"PackedPolicyTooLargeException", "error":{ "code":"PackedPolicyTooLarge", "httpStatusCode":400, "senderFault":true }, "exception":true } ] }, "GetSessionToken":{ "name":"GetSessionToken", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetSessionTokenRequest"}, "output":{ "shape":"GetSessionTokenResponse", "resultWrapper":"GetSessionTokenResult" } } }, "shapes":{ "AssumeRoleRequest":{ "type":"structure", "required":[ "RoleArn", "RoleSessionName" ], "members":{ "RoleArn":{"shape":"arnType"}, "RoleSessionName":{"shape":"roleSessionNameType"}, "Policy":{"shape":"sessionPolicyDocumentType"}, "DurationSeconds":{"shape":"roleDurationSecondsType"}, "ExternalId":{"shape":"externalIdType"}, "SerialNumber":{"shape":"serialNumberType"}, "TokenCode":{"shape":"tokenCodeType"} } }, "AssumeRoleResponse":{ "type":"structure", "members":{ "Credentials":{"shape":"Credentials"}, "AssumedRoleUser":{"shape":"AssumedRoleUser"}, "PackedPolicySize":{"shape":"nonNegativeIntegerType"} } }, "AssumeRoleWithSAMLRequest":{ "type":"structure", "required":[ "RoleArn", "PrincipalArn", "SAMLAssertion" ], "members":{ "RoleArn":{"shape":"arnType"}, "PrincipalArn":{"shape":"arnType"}, "SAMLAssertion":{"shape":"SAMLAssertionType"}, "Policy":{"shape":"sessionPolicyDocumentType"}, "DurationSeconds":{"shape":"roleDurationSecondsType"} } }, "AssumeRoleWithSAMLResponse":{ "type":"structure", "members":{ "Credentials":{"shape":"Credentials"}, "AssumedRoleUser":{"shape":"AssumedRoleUser"}, "PackedPolicySize":{"shape":"nonNegativeIntegerType"}, "Subject":{"shape":"Subject"}, "SubjectType":{"shape":"SubjectType"}, "Issuer":{"shape":"Issuer"}, "Audience":{"shape":"Audience"}, "NameQualifier":{"shape":"NameQualifier"} } }, "AssumeRoleWithWebIdentityRequest":{ "type":"structure", "required":[ "RoleArn", "RoleSessionName", "WebIdentityToken" ], "members":{ "RoleArn":{"shape":"arnType"}, "RoleSessionName":{"shape":"roleSessionNameType"}, "WebIdentityToken":{"shape":"clientTokenType"}, "ProviderId":{"shape":"urlType"}, "Policy":{"shape":"sessionPolicyDocumentType"}, "DurationSeconds":{"shape":"roleDurationSecondsType"} } }, "AssumeRoleWithWebIdentityResponse":{ "type":"structure", "members":{ "Credentials":{"shape":"Credentials"}, "SubjectFromWebIdentityToken":{"shape":"webIdentitySubjectType"}, "AssumedRoleUser":{"shape":"AssumedRoleUser"}, "PackedPolicySize":{"shape":"nonNegativeIntegerType"}, "Provider":{"shape":"Issuer"}, "Audience":{"shape":"Audience"} } }, "AssumedRoleUser":{ "type":"structure", "required":[ "AssumedRoleId", "Arn" ], "members":{ "AssumedRoleId":{"shape":"assumedRoleIdType"}, "Arn":{"shape":"arnType"} } }, "Audience":{"type":"string"}, "Credentials":{ "type":"structure", "required":[ "AccessKeyId", "SecretAccessKey", "SessionToken", "Expiration" ], "members":{ "AccessKeyId":{"shape":"accessKeyIdType"}, "SecretAccessKey":{"shape":"accessKeySecretType"}, "SessionToken":{"shape":"tokenType"}, "Expiration":{"shape":"dateType"} } }, "DecodeAuthorizationMessageRequest":{ "type":"structure", "required":["EncodedMessage"], "members":{ "EncodedMessage":{"shape":"encodedMessageType"} } }, "DecodeAuthorizationMessageResponse":{ "type":"structure", "members":{ "DecodedMessage":{"shape":"decodedMessageType"} } }, "ExpiredTokenException":{ "type":"structure", "members":{ "message":{"shape":"expiredIdentityTokenMessage"} }, "error":{ "code":"ExpiredTokenException", "httpStatusCode":400, "senderFault":true }, "exception":true }, "FederatedUser":{ "type":"structure", "required":[ "FederatedUserId", "Arn" ], "members":{ "FederatedUserId":{"shape":"federatedIdType"}, "Arn":{"shape":"arnType"} } }, "GetFederationTokenRequest":{ "type":"structure", "required":["Name"], "members":{ "Name":{"shape":"userNameType"}, "Policy":{"shape":"sessionPolicyDocumentType"}, "DurationSeconds":{"shape":"durationSecondsType"} } }, "GetFederationTokenResponse":{ "type":"structure", "members":{ "Credentials":{"shape":"Credentials"}, "FederatedUser":{"shape":"FederatedUser"}, "PackedPolicySize":{"shape":"nonNegativeIntegerType"} } }, "GetSessionTokenRequest":{ "type":"structure", "members":{ "DurationSeconds":{"shape":"durationSecondsType"}, "SerialNumber":{"shape":"serialNumberType"}, "TokenCode":{"shape":"tokenCodeType"} } }, "GetSessionTokenResponse":{ "type":"structure", "members":{ "Credentials":{"shape":"Credentials"} } }, "IDPCommunicationErrorException":{ "type":"structure", "members":{ "message":{"shape":"idpCommunicationErrorMessage"} }, "error":{ "code":"IDPCommunicationError", "httpStatusCode":400, "senderFault":true }, "exception":true }, "IDPRejectedClaimException":{ "type":"structure", "members":{ "message":{"shape":"idpRejectedClaimMessage"} }, "error":{ "code":"IDPRejectedClaim", "httpStatusCode":403, "senderFault":true }, "exception":true }, "InvalidAuthorizationMessageException":{ "type":"structure", "members":{ "message":{"shape":"invalidAuthorizationMessage"} }, "error":{ "code":"InvalidAuthorizationMessageException", "httpStatusCode":400, "senderFault":true }, "exception":true }, "InvalidIdentityTokenException":{ "type":"structure", "members":{ "message":{"shape":"invalidIdentityTokenMessage"} }, "error":{ "code":"InvalidIdentityToken", "httpStatusCode":400, "senderFault":true }, "exception":true }, "Issuer":{"type":"string"}, "MalformedPolicyDocumentException":{ "type":"structure", "members":{ "message":{"shape":"malformedPolicyDocumentMessage"} }, "error":{ "code":"MalformedPolicyDocument", "httpStatusCode":400, "senderFault":true }, "exception":true }, "NameQualifier":{"type":"string"}, "PackedPolicyTooLargeException":{ "type":"structure", "members":{ "message":{"shape":"packedPolicyTooLargeMessage"} }, "error":{ "code":"PackedPolicyTooLarge", "httpStatusCode":400, "senderFault":true }, "exception":true }, "SAMLAssertionType":{ "type":"string", "min":4, "max":50000 }, "Subject":{"type":"string"}, "SubjectType":{"type":"string"}, "accessKeyIdType":{ "type":"string", "min":16, "max":32, "pattern":"[\\w]*" }, "accessKeySecretType":{"type":"string"}, "arnType":{ "type":"string", "min":20, "max":2048 }, "assumedRoleIdType":{ "type":"string", "min":2, "max":96, "pattern":"[\\w+=,.@:-]*" }, "clientTokenType":{ "type":"string", "min":4, "max":2048 }, "dateType":{"type":"timestamp"}, "decodedMessageType":{"type":"string"}, "durationSecondsType":{ "type":"integer", "min":900, "max":129600 }, "encodedMessageType":{ "type":"string", "min":1, "max":10240 }, "expiredIdentityTokenMessage":{"type":"string"}, "externalIdType":{ "type":"string", "min":2, "max":1224, "pattern":"[\\w+=,.@:\\/-]*" }, "federatedIdType":{ "type":"string", "min":2, "max":96, "pattern":"[\\w+=,.@\\:-]*" }, "idpCommunicationErrorMessage":{"type":"string"}, "idpRejectedClaimMessage":{"type":"string"}, "invalidAuthorizationMessage":{"type":"string"}, "invalidIdentityTokenMessage":{"type":"string"}, "malformedPolicyDocumentMessage":{"type":"string"}, "nonNegativeIntegerType":{ "type":"integer", "min":0 }, "packedPolicyTooLargeMessage":{"type":"string"}, "roleDurationSecondsType":{ "type":"integer", "min":900, "max":3600 }, "roleSessionNameType":{ "type":"string", "min":2, "max":64, "pattern":"[\\w+=,.@-]*" }, "serialNumberType":{ "type":"string", "min":9, "max":256, "pattern":"[\\w+=/:,.@-]*" }, "sessionPolicyDocumentType":{ "type":"string", "min":1, "max":2048, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u00FF]+" }, "tokenCodeType":{ "type":"string", "min":6, "max":6, "pattern":"[\\d]*" }, "tokenType":{"type":"string"}, "urlType":{ "type":"string", "min":4, "max":2048 }, "userNameType":{ "type":"string", "min":2, "max":32, "pattern":"[\\w+=,.@-]*" }, "webIdentitySubjectType":{ "type":"string", "min":6, "max":255 } } }