From ca2eb8c6ae7bea4ecffe0915863a5bfa019d0733 Mon Sep 17 00:00:00 2001 From: awssdkgo Date: Wed, 31 Aug 2022 18:34:24 +0000 Subject: [PATCH] Release v1.44.89 (2022-08-31) === ### Service Client Updates * `service/cloudfront`: Updates service documentation * Update API documentation for CloudFront origin access control (OAC) * `service/identitystore`: Updates service API, documentation, and paginators * `service/iotthingsgraph`: Updates service API and documentation * `service/ivs`: Updates service API and documentation * `service/rds-data`: Updates service API and documentation * `service/sagemaker`: Updates service API and documentation * SageMaker Inference Recommender now accepts Inference Recommender fields: Domain, Task, Framework, SamplePayloadUrl, SupportedContentTypes, SupportedInstanceTypes, directly in our CreateInferenceRecommendationsJob API through ContainerConfig --- CHANGELOG.md | 13 + aws/version.go | 2 +- models/apis/cloudfront/2020-05-31/docs-2.json | 14 +- .../apis/identitystore/2020-06-15/api-2.json | 2062 +++++- .../apis/identitystore/2020-06-15/docs-2.json | 516 +- .../2020-06-15/paginators-1.json | 18 +- .../apis/iotthingsgraph/2018-09-06/api-2.json | 140 +- .../iotthingsgraph/2018-09-06/docs-2.json | 4 +- models/apis/ivs/2020-07-14/api-2.json | 7 + models/apis/ivs/2020-07-14/docs-2.json | 7 + models/apis/rds-data/2018-08-01/api-2.json | 102 +- models/apis/rds-data/2018-08-01/docs-2.json | 46 +- models/apis/sagemaker/2017-07-24/api-2.json | 30 +- models/apis/sagemaker/2017-07-24/docs-2.json | 64 +- service/cloudfront/api.go | 15 +- service/identitystore/api.go | 6337 +++++++++++++++-- service/identitystore/doc.go | 15 +- service/identitystore/errors.go | 31 +- .../identitystoreiface/interface.go | 70 +- service/iotthingsgraph/api.go | 357 +- service/iotthingsgraph/doc.go | 2 + service/ivs/api.go | 22 + service/rdsdataservice/api.go | 24 +- service/rdsdataservice/doc.go | 6 +- service/sagemaker/api.go | 249 +- 25 files changed, 8935 insertions(+), 1218 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88c9463161..0ed44fe16b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +Release v1.44.89 (2022-08-31) +=== + +### Service Client Updates +* `service/cloudfront`: Updates service documentation + * Update API documentation for CloudFront origin access control (OAC) +* `service/identitystore`: Updates service API, documentation, and paginators +* `service/iotthingsgraph`: Updates service API and documentation +* `service/ivs`: Updates service API and documentation +* `service/rds-data`: Updates service API and documentation +* `service/sagemaker`: Updates service API and documentation + * SageMaker Inference Recommender now accepts Inference Recommender fields: Domain, Task, Framework, SamplePayloadUrl, SupportedContentTypes, SupportedInstanceTypes, directly in our CreateInferenceRecommendationsJob API through ContainerConfig + Release v1.44.88 (2022-08-30) === diff --git a/aws/version.go b/aws/version.go index d0014d7d8c..d275181d41 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.88" +const SDKVersion = "1.44.89" diff --git a/models/apis/cloudfront/2020-05-31/docs-2.json b/models/apis/cloudfront/2020-05-31/docs-2.json index afd2f4d52f..f5dab01e02 100644 --- a/models/apis/cloudfront/2020-05-31/docs-2.json +++ b/models/apis/cloudfront/2020-05-31/docs-2.json @@ -50,8 +50,8 @@ "GetKeyGroup": "

Gets a key group, including the date and time when the key group was last modified.

To get a key group, you must provide the key group’s identifier. If the key group is referenced in a distribution’s cache behavior, you can get the key group’s identifier using ListDistributions or GetDistribution. If the key group is not referenced in a cache behavior, you can get the identifier using ListKeyGroups.

", "GetKeyGroupConfig": "

Gets a key group configuration.

To get a key group configuration, you must provide the key group’s identifier. If the key group is referenced in a distribution’s cache behavior, you can get the key group’s identifier using ListDistributions or GetDistribution. If the key group is not referenced in a cache behavior, you can get the identifier using ListKeyGroups.

", "GetMonitoringSubscription": "

Gets information about whether additional CloudWatch metrics are enabled for the specified CloudFront distribution.

", - "GetOriginAccessControl": "

Gets a CloudFront origin access control.

", - "GetOriginAccessControlConfig": "

Gets a CloudFront origin access control.

", + "GetOriginAccessControl": "

Gets a CloudFront origin access control, including its unique identifier.

", + "GetOriginAccessControlConfig": "

Gets a CloudFront origin access control configuration.

", "GetOriginRequestPolicy": "

Gets an origin request policy, including the following metadata:

To get an origin request policy, you must provide the policy’s identifier. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the origin request policy is not attached to a cache behavior, you can get the identifier using ListOriginRequestPolicies.

", "GetOriginRequestPolicyConfig": "

Gets an origin request policy configuration.

To get an origin request policy configuration, you must provide the policy’s identifier. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the origin request policy is not attached to a cache behavior, you can get the identifier using ListOriginRequestPolicies.

", "GetPublicKey": "

Gets a public key.

", @@ -2041,10 +2041,10 @@ } }, "OriginAccessControl": { - "base": "

A CloudFront origin access control.

", + "base": "

A CloudFront origin access control, including its unique identifier.

", "refs": { "CreateOriginAccessControlResult$OriginAccessControl": "

Contains an origin access control.

", - "GetOriginAccessControlResult$OriginAccessControl": "

Contains an origin access control.

", + "GetOriginAccessControlResult$OriginAccessControl": "

Contains an origin access control, including its unique identifier.

", "UpdateOriginAccessControlResult$OriginAccessControl": "

The origin access control after it has been updated.

" } }, @@ -2054,10 +2054,10 @@ } }, "OriginAccessControlConfig": { - "base": "

A CloudFront origin access control.

", + "base": "

A CloudFront origin access control configuration.

", "refs": { "CreateOriginAccessControlRequest$OriginAccessControlConfig": "

Contains the origin access control.

", - "GetOriginAccessControlConfigResult$OriginAccessControlConfig": "

Contains an origin access control.

", + "GetOriginAccessControlConfigResult$OriginAccessControlConfig": "

Contains an origin access control configuration.

", "OriginAccessControl$OriginAccessControlConfig": "

The origin access control.

", "UpdateOriginAccessControlRequest$OriginAccessControlConfig": "

An origin access control.

" } @@ -2083,7 +2083,7 @@ "OriginAccessControlSigningBehaviors": { "base": null, "refs": { - "OriginAccessControlConfig$SigningBehavior": "

Specifies which requests CloudFront signs (adds authentication information to). Specify always for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide.

This field can have one of the following values:

", + "OriginAccessControlConfig$SigningBehavior": "

Specifies which requests CloudFront signs (adds authentication information to). Specify always for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide.

This field can have one of the following values:

", "OriginAccessControlSummary$SigningBehavior": "

A value that specifies which requests CloudFront signs (adds authentication information to). This field can have one of the following values:

" } }, diff --git a/models/apis/identitystore/2020-06-15/api-2.json b/models/apis/identitystore/2020-06-15/api-2.json index 674bc27d25..abbf02fb65 100644 --- a/models/apis/identitystore/2020-06-15/api-2.json +++ b/models/apis/identitystore/2020-06-15/api-2.json @@ -1,318 +1,1818 @@ { - "version":"2.0", - "metadata":{ - "apiVersion":"2020-06-15", - "endpointPrefix":"identitystore", - "jsonVersion":"1.1", - "protocol":"json", - "serviceAbbreviation":"IdentityStore", - "serviceFullName":"AWS SSO Identity Store", - "serviceId":"identitystore", - "signatureVersion":"v4", - "signingName":"identitystore", - "targetPrefix":"AWSIdentityStore", - "uid":"identitystore-2020-06-15" + "metadata": { + "apiVersion": "2020-06-15", + "endpointPrefix": "identitystore", + "jsonVersion": "1.1", + "protocol": "json", + "serviceAbbreviation": "IdentityStore", + "serviceFullName": "AWS SSO Identity Store", + "serviceId": "identitystore", + "signatureVersion": "v4", + "signingName": "identitystore", + "targetPrefix": "AWSIdentityStore", + "uid": "identitystore-2020-06-15" }, - "operations":{ - "DescribeGroup":{ - "name":"DescribeGroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeGroupRequest"}, - "output":{"shape":"DescribeGroupResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"}, - {"shape":"AccessDeniedException"}, - {"shape":"ThrottlingException"}, - {"shape":"InternalServerException"} - ] - }, - "DescribeUser":{ - "name":"DescribeUser", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DescribeUserRequest"}, - "output":{"shape":"DescribeUserResponse"}, - "errors":[ - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"}, - {"shape":"AccessDeniedException"}, - {"shape":"ThrottlingException"}, - {"shape":"InternalServerException"} - ] - }, - "ListGroups":{ - "name":"ListGroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListGroupsRequest"}, - "output":{"shape":"ListGroupsResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"AccessDeniedException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"}, - {"shape":"InternalServerException"} - ] - }, - "ListUsers":{ - "name":"ListUsers", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListUsersRequest"}, - "output":{"shape":"ListUsersResponse"}, - "errors":[ - {"shape":"ValidationException"}, - {"shape":"AccessDeniedException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"}, - {"shape":"InternalServerException"} - ] - } - }, - "shapes":{ - "AccessDeniedException":{ - "type":"structure", - "members":{ - "Message":{"shape":"Message"}, - "RequestId":{"shape":"RequestId"} - }, - "exception":true - }, - "AttributePath":{ - "type":"string", - "max":255, - "min":1, - "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}  ]+" - }, - "DescribeGroupRequest":{ - "type":"structure", - "required":[ - "IdentityStoreId", - "GroupId" + "operations": { + "CreateGroup": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ServiceQuotaExceededException" + } ], - "members":{ - "IdentityStoreId":{"shape":"IdentityStoreId"}, - "GroupId":{"shape":"ResourceId"} + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "CreateGroupRequest" + }, + "name": "CreateGroup", + "output": { + "shape": "CreateGroupResponse" } }, - "DescribeGroupResponse":{ - "type":"structure", - "required":[ - "GroupId", - "DisplayName" + "CreateGroupMembership": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ServiceQuotaExceededException" + } ], - "members":{ - "GroupId":{"shape":"ResourceId"}, - "DisplayName":{"shape":"GroupDisplayName"} + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "CreateGroupMembershipRequest" + }, + "name": "CreateGroupMembership", + "output": { + "shape": "CreateGroupMembershipResponse" } }, - "DescribeUserRequest":{ - "type":"structure", - "required":[ - "IdentityStoreId", - "UserId" + "CreateUser": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ServiceQuotaExceededException" + } ], - "members":{ - "IdentityStoreId":{"shape":"IdentityStoreId"}, - "UserId":{"shape":"ResourceId"} + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "CreateUserRequest" + }, + "name": "CreateUser", + "output": { + "shape": "CreateUserResponse" } }, - "DescribeUserResponse":{ - "type":"structure", - "required":[ - "UserName", - "UserId" + "DeleteGroup": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } ], - "members":{ - "UserName":{"shape":"UserName"}, - "UserId":{"shape":"ResourceId"} + "http": { + "method": "POST", + "requestUri": "/" + }, + "idempotent": true, + "input": { + "shape": "DeleteGroupRequest" + }, + "name": "DeleteGroup", + "output": { + "shape": "DeleteGroupResponse" } }, - "Filter":{ - "type":"structure", - "required":[ - "AttributePath", - "AttributeValue" + "DeleteGroupMembership": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "idempotent": true, + "input": { + "shape": "DeleteGroupMembershipRequest" + }, + "name": "DeleteGroupMembership", + "output": { + "shape": "DeleteGroupMembershipResponse" + } + }, + "DeleteUser": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } ], - "members":{ - "AttributePath":{"shape":"AttributePath"}, - "AttributeValue":{"shape":"SensitiveStringType"} + "http": { + "method": "POST", + "requestUri": "/" + }, + "idempotent": true, + "input": { + "shape": "DeleteUserRequest" + }, + "name": "DeleteUser", + "output": { + "shape": "DeleteUserResponse" } }, - "Filters":{ - "type":"list", - "member":{"shape":"Filter"} + "DescribeGroup": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "DescribeGroupRequest" + }, + "name": "DescribeGroup", + "output": { + "shape": "DescribeGroupResponse" + } }, - "Group":{ - "type":"structure", - "required":[ - "GroupId", - "DisplayName" + "DescribeGroupMembership": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } ], - "members":{ - "GroupId":{"shape":"ResourceId"}, - "DisplayName":{"shape":"GroupDisplayName"} + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "DescribeGroupMembershipRequest" + }, + "name": "DescribeGroupMembership", + "output": { + "shape": "DescribeGroupMembershipResponse" } }, - "GroupDisplayName":{ - "type":"string", - "max":1024, - "min":1, - "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+" - }, - "Groups":{ - "type":"list", - "member":{"shape":"Group"} - }, - "IdentityStoreId":{ - "type":"string", - "max":12, - "min":1, - "pattern":"^d-[0-9a-f]{10}$" - }, - "InternalServerException":{ - "type":"structure", - "members":{ - "Message":{"shape":"Message"}, - "RequestId":{"shape":"RequestId"} - }, - "exception":true, - "fault":true - }, - "ListGroupsRequest":{ - "type":"structure", - "required":["IdentityStoreId"], - "members":{ - "IdentityStoreId":{"shape":"IdentityStoreId"}, - "MaxResults":{"shape":"MaxResults"}, - "NextToken":{"shape":"NextToken"}, - "Filters":{"shape":"Filters"} + "DescribeUser": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "DescribeUserRequest" + }, + "name": "DescribeUser", + "output": { + "shape": "DescribeUserResponse" } }, - "ListGroupsResponse":{ - "type":"structure", - "required":["Groups"], - "members":{ - "Groups":{"shape":"Groups"}, - "NextToken":{"shape":"NextToken"} + "GetGroupId": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "GetGroupIdRequest" + }, + "name": "GetGroupId", + "output": { + "shape": "GetGroupIdResponse" } }, - "ListUsersRequest":{ - "type":"structure", - "required":["IdentityStoreId"], - "members":{ - "IdentityStoreId":{"shape":"IdentityStoreId"}, - "MaxResults":{"shape":"MaxResults"}, - "NextToken":{"shape":"NextToken"}, - "Filters":{"shape":"Filters"} + "GetGroupMembershipId": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "GetGroupMembershipIdRequest" + }, + "name": "GetGroupMembershipId", + "output": { + "shape": "GetGroupMembershipIdResponse" + } + }, + "GetUserId": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "GetUserIdRequest" + }, + "name": "GetUserId", + "output": { + "shape": "GetUserIdResponse" + } + }, + "IsMemberInGroups": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "IsMemberInGroupsRequest" + }, + "name": "IsMemberInGroups", + "output": { + "shape": "IsMemberInGroupsResponse" + } + }, + "ListGroupMemberships": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "ListGroupMembershipsRequest" + }, + "name": "ListGroupMemberships", + "output": { + "shape": "ListGroupMembershipsResponse" + } + }, + "ListGroupMembershipsForMember": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "ListGroupMembershipsForMemberRequest" + }, + "name": "ListGroupMembershipsForMember", + "output": { + "shape": "ListGroupMembershipsForMemberResponse" + } + }, + "ListGroups": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "ListGroupsRequest" + }, + "name": "ListGroups", + "output": { + "shape": "ListGroupsResponse" + } + }, + "ListUsers": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "ListUsersRequest" + }, + "name": "ListUsers", + "output": { + "shape": "ListUsersResponse" + } + }, + "UpdateGroup": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ServiceQuotaExceededException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "UpdateGroupRequest" + }, + "name": "UpdateGroup", + "output": { + "shape": "UpdateGroupResponse" } }, - "ListUsersResponse":{ - "type":"structure", - "required":["Users"], - "members":{ - "Users":{"shape":"Users"}, - "NextToken":{"shape":"NextToken"} + "UpdateUser": { + "errors": [ + { + "shape": "ResourceNotFoundException" + }, + { + "shape": "ThrottlingException" + }, + { + "shape": "AccessDeniedException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "InternalServerException" + }, + { + "shape": "ValidationException" + }, + { + "shape": "ServiceQuotaExceededException" + } + ], + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { + "shape": "UpdateUserRequest" + }, + "name": "UpdateUser", + "output": { + "shape": "UpdateUserResponse" } + } + }, + "shapes": { + "AccessDeniedException": { + "exception": true, + "members": { + "Message": { + "shape": "ExceptionMessage" + }, + "RequestId": { + "shape": "RequestId" + } + }, + "type": "structure" + }, + "Address": { + "members": { + "Country": { + "shape": "SensitiveStringType" + }, + "Formatted": { + "shape": "SensitiveStringType" + }, + "Locality": { + "shape": "SensitiveStringType" + }, + "PostalCode": { + "shape": "SensitiveStringType" + }, + "Primary": { + "shape": "SensitiveBooleanType" + }, + "Region": { + "shape": "SensitiveStringType" + }, + "StreetAddress": { + "shape": "SensitiveStringType" + }, + "Type": { + "shape": "SensitiveStringType" + } + }, + "type": "structure" + }, + "Addresses": { + "max": 1, + "member": { + "shape": "Address" + }, + "min": 1, + "type": "list" + }, + "AlternateIdentifier": { + "members": { + "ExternalId": { + "shape": "ExternalId" + } + }, + "type": "structure", + "union": true + }, + "AttributeOperation": { + "members": { + "AttributePath": { + "shape": "AttributePath" + } + }, + "required": [ + "AttributePath" + ], + "type": "structure" + }, + "AttributeOperations": { + "max": 100, + "member": { + "shape": "AttributeOperation" + }, + "min": 1, + "type": "list" + }, + "AttributePath": { + "max": 255, + "min": 1, + "pattern": "\\p{L}+(?:\\.\\p{L}+){0,2}", + "type": "string" + }, + "ConflictException": { + "exception": true, + "members": { + "Message": { + "shape": "ExceptionMessage" + }, + "Reason": { + "shape": "ConflictExceptionReason" + }, + "RequestId": { + "shape": "RequestId" + } + }, + "type": "structure" + }, + "ConflictExceptionReason": { + "enum": [ + "UNIQUENESS_CONSTRAINT_VIOLATION", + "CONCURRENT_MODIFICATION" + ], + "type": "string" + }, + "CreateGroupMembershipRequest": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MemberId": { + "shape": "MemberId" + } + }, + "required": [ + "IdentityStoreId", + "GroupId", + "MemberId" + ], + "type": "structure" + }, + "CreateGroupMembershipResponse": { + "members": { + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MembershipId": { + "shape": "ResourceId" + } + }, + "required": [ + "MembershipId", + "IdentityStoreId" + ], + "type": "structure" + }, + "CreateGroupRequest": { + "members": { + "Description": { + "shape": "SensitiveStringType" + }, + "DisplayName": { + "shape": "GroupDisplayName" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + } + }, + "required": [ + "IdentityStoreId" + ], + "type": "structure" + }, + "CreateGroupResponse": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + } + }, + "required": [ + "GroupId", + "IdentityStoreId" + ], + "type": "structure" + }, + "CreateUserRequest": { + "members": { + "Addresses": { + "shape": "Addresses" + }, + "DisplayName": { + "shape": "SensitiveStringType" + }, + "Emails": { + "shape": "Emails" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "Locale": { + "shape": "SensitiveStringType" + }, + "Name": { + "shape": "Name" + }, + "NickName": { + "shape": "SensitiveStringType" + }, + "PhoneNumbers": { + "shape": "PhoneNumbers" + }, + "PreferredLanguage": { + "shape": "SensitiveStringType" + }, + "ProfileUrl": { + "shape": "SensitiveStringType" + }, + "Timezone": { + "shape": "SensitiveStringType" + }, + "Title": { + "shape": "SensitiveStringType" + }, + "UserName": { + "shape": "UserName" + }, + "UserType": { + "shape": "SensitiveStringType" + } + }, + "required": [ + "IdentityStoreId" + ], + "type": "structure" + }, + "CreateUserResponse": { + "members": { + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "UserId": { + "shape": "ResourceId" + } + }, + "required": [ + "UserId", + "IdentityStoreId" + ], + "type": "structure" + }, + "DeleteGroupMembershipRequest": { + "members": { + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MembershipId": { + "shape": "ResourceId" + } + }, + "required": [ + "IdentityStoreId", + "MembershipId" + ], + "type": "structure" + }, + "DeleteGroupMembershipResponse": { + "members": {}, + "type": "structure" + }, + "DeleteGroupRequest": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + } + }, + "required": [ + "IdentityStoreId", + "GroupId" + ], + "type": "structure" + }, + "DeleteGroupResponse": { + "members": {}, + "type": "structure" + }, + "DeleteUserRequest": { + "members": { + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "UserId": { + "shape": "ResourceId" + } + }, + "required": [ + "IdentityStoreId", + "UserId" + ], + "type": "structure" + }, + "DeleteUserResponse": { + "members": {}, + "type": "structure" + }, + "DescribeGroupMembershipRequest": { + "members": { + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MembershipId": { + "shape": "ResourceId" + } + }, + "required": [ + "IdentityStoreId", + "MembershipId" + ], + "type": "structure" + }, + "DescribeGroupMembershipResponse": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MemberId": { + "shape": "MemberId" + }, + "MembershipId": { + "shape": "ResourceId" + } + }, + "required": [ + "IdentityStoreId", + "MembershipId", + "GroupId", + "MemberId" + ], + "type": "structure" + }, + "DescribeGroupRequest": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + } + }, + "required": [ + "IdentityStoreId", + "GroupId" + ], + "type": "structure" }, - "MaxResults":{ - "type":"integer", - "max":50, - "min":1 - }, - "Message":{ - "type":"string", - "max":65535, - "min":1 - }, - "NextToken":{ - "type":"string", - "max":65535, - "min":1, - "pattern":"^[-a-zA-Z0-9+=/:]*" - }, - "RequestId":{ - "type":"string", - "pattern":"[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}" - }, - "ResourceId":{ - "type":"string", - "max":47, - "min":1, - "pattern":"^([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$" - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - "ResourceType":{"shape":"ResourceType"}, - "ResourceId":{"shape":"ResourceId"}, - "Message":{"shape":"Message"}, - "RequestId":{"shape":"RequestId"} - }, - "exception":true - }, - "ResourceType":{ - "type":"string", - "enum":[ + "DescribeGroupResponse": { + "members": { + "Description": { + "shape": "SensitiveStringType" + }, + "DisplayName": { + "shape": "GroupDisplayName" + }, + "ExternalIds": { + "shape": "ExternalIds" + }, + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + } + }, + "required": [ + "GroupId", + "IdentityStoreId" + ], + "type": "structure" + }, + "DescribeUserRequest": { + "members": { + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "UserId": { + "shape": "ResourceId" + } + }, + "required": [ + "IdentityStoreId", + "UserId" + ], + "type": "structure" + }, + "DescribeUserResponse": { + "members": { + "Addresses": { + "shape": "Addresses" + }, + "DisplayName": { + "shape": "SensitiveStringType" + }, + "Emails": { + "shape": "Emails" + }, + "ExternalIds": { + "shape": "ExternalIds" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "Locale": { + "shape": "SensitiveStringType" + }, + "Name": { + "shape": "Name" + }, + "NickName": { + "shape": "SensitiveStringType" + }, + "PhoneNumbers": { + "shape": "PhoneNumbers" + }, + "PreferredLanguage": { + "shape": "SensitiveStringType" + }, + "ProfileUrl": { + "shape": "SensitiveStringType" + }, + "Timezone": { + "shape": "SensitiveStringType" + }, + "Title": { + "shape": "SensitiveStringType" + }, + "UserId": { + "shape": "ResourceId" + }, + "UserName": { + "shape": "UserName" + }, + "UserType": { + "shape": "SensitiveStringType" + } + }, + "required": [ + "UserId", + "IdentityStoreId" + ], + "type": "structure" + }, + "Email": { + "members": { + "Primary": { + "shape": "SensitiveBooleanType" + }, + "Type": { + "shape": "SensitiveStringType" + }, + "Value": { + "shape": "SensitiveStringType" + } + }, + "type": "structure" + }, + "Emails": { + "max": 1, + "member": { + "shape": "Email" + }, + "min": 1, + "type": "list" + }, + "ExceptionMessage": { + "type": "string" + }, + "ExternalId": { + "members": { + "Id": { + "shape": "ExternalIdIdentifier" + }, + "Issuer": { + "shape": "ExternalIdIssuer" + } + }, + "required": [ + "Issuer", + "Id" + ], + "type": "structure" + }, + "ExternalIdIdentifier": { + "max": 256, + "min": 1, + "pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+", + "sensitive": true, + "type": "string" + }, + "ExternalIdIssuer": { + "max": 100, + "min": 1, + "pattern": "(?!(?i)(arn|aws):)[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+", + "sensitive": true, + "type": "string" + }, + "ExternalIds": { + "max": 10, + "member": { + "shape": "ExternalId" + }, + "min": 1, + "type": "list" + }, + "Filter": { + "members": { + "AttributePath": { + "shape": "AttributePath" + }, + "AttributeValue": { + "shape": "SensitiveStringType" + } + }, + "required": [ + "AttributePath", + "AttributeValue" + ], + "type": "structure" + }, + "Filters": { + "max": 1, + "member": { + "shape": "Filter" + }, + "min": 0, + "type": "list" + }, + "GetGroupIdRequest": { + "members": { + "AlternateIdentifier": { + "shape": "AlternateIdentifier" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + } + }, + "required": [ + "IdentityStoreId", + "AlternateIdentifier" + ], + "type": "structure" + }, + "GetGroupIdResponse": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + } + }, + "required": [ + "GroupId", + "IdentityStoreId" + ], + "type": "structure" + }, + "GetGroupMembershipIdRequest": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MemberId": { + "shape": "MemberId" + } + }, + "required": [ + "IdentityStoreId", + "GroupId", + "MemberId" + ], + "type": "structure" + }, + "GetGroupMembershipIdResponse": { + "members": { + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MembershipId": { + "shape": "ResourceId" + } + }, + "required": [ + "MembershipId", + "IdentityStoreId" + ], + "type": "structure" + }, + "GetUserIdRequest": { + "members": { + "AlternateIdentifier": { + "shape": "AlternateIdentifier" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + } + }, + "required": [ + "IdentityStoreId", + "AlternateIdentifier" + ], + "type": "structure" + }, + "GetUserIdResponse": { + "members": { + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "UserId": { + "shape": "ResourceId" + } + }, + "required": [ + "UserId", + "IdentityStoreId" + ], + "type": "structure" + }, + "Group": { + "members": { + "Description": { + "shape": "SensitiveStringType" + }, + "DisplayName": { + "shape": "GroupDisplayName" + }, + "ExternalIds": { + "shape": "ExternalIds" + }, + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + } + }, + "required": [ + "GroupId", + "IdentityStoreId" + ], + "type": "structure" + }, + "GroupDisplayName": { + "max": 1024, + "min": 1, + "pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+", + "sensitive": true, + "type": "string" + }, + "GroupIds": { + "max": 100, + "member": { + "shape": "ResourceId" + }, + "min": 1, + "type": "list" + }, + "GroupMembership": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MemberId": { + "shape": "MemberId" + }, + "MembershipId": { + "shape": "ResourceId" + } + }, + "required": [ + "IdentityStoreId" + ], + "type": "structure" + }, + "GroupMembershipExistenceResult": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "MemberId": { + "shape": "MemberId" + }, + "MembershipExists": { + "shape": "SensitiveBooleanType" + } + }, + "type": "structure" + }, + "GroupMembershipExistenceResults": { + "member": { + "shape": "GroupMembershipExistenceResult" + }, + "type": "list" + }, + "GroupMemberships": { + "member": { + "shape": "GroupMembership" + }, + "type": "list" + }, + "Groups": { + "member": { + "shape": "Group" + }, + "type": "list" + }, + "IdentityStoreId": { + "max": 36, + "min": 1, + "pattern": "d-[0-9a-f]{10}$|^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", + "type": "string" + }, + "InternalServerException": { + "exception": true, + "fault": true, + "members": { + "Message": { + "shape": "ExceptionMessage" + }, + "RequestId": { + "shape": "RequestId" + }, + "RetryAfterSeconds": { + "shape": "RetryAfterSeconds" + } + }, + "retryable": { + "throttling": false + }, + "type": "structure" + }, + "IsMemberInGroupsRequest": { + "members": { + "GroupIds": { + "shape": "GroupIds" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MemberId": { + "shape": "MemberId" + } + }, + "required": [ + "IdentityStoreId", + "MemberId", + "GroupIds" + ], + "type": "structure" + }, + "IsMemberInGroupsResponse": { + "members": { + "Results": { + "shape": "GroupMembershipExistenceResults" + } + }, + "required": [ + "Results" + ], + "type": "structure" + }, + "ListGroupMembershipsForMemberRequest": { + "members": { + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MaxResults": { + "shape": "MaxResults" + }, + "MemberId": { + "shape": "MemberId" + }, + "NextToken": { + "shape": "NextToken" + } + }, + "required": [ + "IdentityStoreId", + "MemberId" + ], + "type": "structure" + }, + "ListGroupMembershipsForMemberResponse": { + "members": { + "GroupMemberships": { + "shape": "GroupMemberships" + }, + "NextToken": { + "shape": "NextToken" + } + }, + "required": [ + "GroupMemberships" + ], + "type": "structure" + }, + "ListGroupMembershipsRequest": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MaxResults": { + "shape": "MaxResults" + }, + "NextToken": { + "shape": "NextToken" + } + }, + "required": [ + "IdentityStoreId", + "GroupId" + ], + "type": "structure" + }, + "ListGroupMembershipsResponse": { + "members": { + "GroupMemberships": { + "shape": "GroupMemberships" + }, + "NextToken": { + "shape": "NextToken" + } + }, + "required": [ + "GroupMemberships" + ], + "type": "structure" + }, + "ListGroupsRequest": { + "members": { + "Filters": { + "deprecated": true, + "deprecatedMessage": "Using filters with ListGroups API is deprecated, please use GetGroupId API instead.", + "shape": "Filters" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MaxResults": { + "shape": "MaxResults" + }, + "NextToken": { + "shape": "NextToken" + } + }, + "required": [ + "IdentityStoreId" + ], + "type": "structure" + }, + "ListGroupsResponse": { + "members": { + "Groups": { + "shape": "Groups" + }, + "NextToken": { + "shape": "NextToken" + } + }, + "required": [ + "Groups" + ], + "type": "structure" + }, + "ListUsersRequest": { + "members": { + "Filters": { + "deprecated": true, + "deprecatedMessage": "Using filters with ListUsers API is deprecated, please use GetGroupId API instead.", + "shape": "Filters" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "MaxResults": { + "shape": "MaxResults" + }, + "NextToken": { + "shape": "NextToken" + } + }, + "required": [ + "IdentityStoreId" + ], + "type": "structure" + }, + "ListUsersResponse": { + "members": { + "NextToken": { + "shape": "NextToken" + }, + "Users": { + "shape": "Users" + } + }, + "required": [ + "Users" + ], + "type": "structure" + }, + "MaxResults": { + "box": true, + "max": 100, + "min": 1, + "type": "integer" + }, + "MemberId": { + "members": { + "UserId": { + "shape": "ResourceId" + } + }, + "type": "structure", + "union": true + }, + "Name": { + "members": { + "FamilyName": { + "shape": "SensitiveStringType" + }, + "Formatted": { + "shape": "SensitiveStringType" + }, + "GivenName": { + "shape": "SensitiveStringType" + }, + "HonorificPrefix": { + "shape": "SensitiveStringType" + }, + "HonorificSuffix": { + "shape": "SensitiveStringType" + }, + "MiddleName": { + "shape": "SensitiveStringType" + } + }, + "type": "structure" + }, + "NextToken": { + "max": 65535, + "min": 1, + "pattern": "[-a-zA-Z0-9+=/:]*", + "type": "string" + }, + "PhoneNumber": { + "members": { + "Primary": { + "shape": "SensitiveBooleanType" + }, + "Type": { + "shape": "SensitiveStringType" + }, + "Value": { + "shape": "SensitiveStringType" + } + }, + "type": "structure" + }, + "PhoneNumbers": { + "max": 1, + "member": { + "shape": "PhoneNumber" + }, + "min": 1, + "type": "list" + }, + "RequestId": { + "max": 36, + "min": 1, + "pattern": "[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}", + "type": "string" + }, + "ResourceId": { + "max": 47, + "min": 1, + "pattern": "([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}", + "type": "string" + }, + "ResourceNotFoundException": { + "exception": true, + "members": { + "Message": { + "shape": "ExceptionMessage" + }, + "RequestId": { + "shape": "RequestId" + }, + "ResourceId": { + "shape": "ResourceId" + }, + "ResourceType": { + "shape": "ResourceType" + } + }, + "type": "structure" + }, + "ResourceType": { + "enum": [ "GROUP", "USER", - "IDENTITY_STORE" - ] - }, - "SensitiveStringType":{ - "type":"string", - "max":1024, - "min":1, - "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r  ]+", - "sensitive":true - }, - "ThrottlingException":{ - "type":"structure", - "members":{ - "Message":{"shape":"Message"}, - "RequestId":{"shape":"RequestId"} - }, - "exception":true - }, - "User":{ - "type":"structure", - "required":[ - "UserName", - "UserId" + "IDENTITY_STORE", + "GROUP_MEMBERSHIP" ], - "members":{ - "UserName":{"shape":"UserName"}, - "UserId":{"shape":"ResourceId"} - } + "type": "string" + }, + "RetryAfterSeconds": { + "type": "integer" + }, + "SensitiveBooleanType": { + "sensitive": true, + "type": "boolean" }, - "UserName":{ - "type":"string", - "max":128, - "min":1, - "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+", - "sensitive":true + "SensitiveStringType": { + "max": 1024, + "min": 1, + "pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}\\t\\n\\r   ]+", + "sensitive": true, + "type": "string" }, - "Users":{ - "type":"list", - "member":{"shape":"User"} + "ServiceQuotaExceededException": { + "exception": true, + "members": { + "Message": { + "shape": "ExceptionMessage" + }, + "RequestId": { + "shape": "RequestId" + } + }, + "type": "structure" + }, + "ThrottlingException": { + "exception": true, + "members": { + "Message": { + "shape": "ExceptionMessage" + }, + "RequestId": { + "shape": "RequestId" + }, + "RetryAfterSeconds": { + "shape": "RetryAfterSeconds" + } + }, + "retryable": { + "throttling": true + }, + "type": "structure" }, - "ValidationException":{ - "type":"structure", - "members":{ - "Message":{"shape":"Message"}, - "RequestId":{"shape":"RequestId"} + "UpdateGroupRequest": { + "members": { + "GroupId": { + "shape": "ResourceId" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "Operations": { + "shape": "AttributeOperations" + } }, - "exception":true + "required": [ + "IdentityStoreId", + "GroupId", + "Operations" + ], + "type": "structure" + }, + "UpdateGroupResponse": { + "members": {}, + "type": "structure" + }, + "UpdateUserRequest": { + "members": { + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "Operations": { + "shape": "AttributeOperations" + }, + "UserId": { + "shape": "ResourceId" + } + }, + "required": [ + "IdentityStoreId", + "UserId", + "Operations" + ], + "type": "structure" + }, + "UpdateUserResponse": { + "members": {}, + "type": "structure" + }, + "User": { + "members": { + "Addresses": { + "shape": "Addresses" + }, + "DisplayName": { + "shape": "SensitiveStringType" + }, + "Emails": { + "shape": "Emails" + }, + "ExternalIds": { + "shape": "ExternalIds" + }, + "IdentityStoreId": { + "shape": "IdentityStoreId" + }, + "Locale": { + "shape": "SensitiveStringType" + }, + "Name": { + "shape": "Name" + }, + "NickName": { + "shape": "SensitiveStringType" + }, + "PhoneNumbers": { + "shape": "PhoneNumbers" + }, + "PreferredLanguage": { + "shape": "SensitiveStringType" + }, + "ProfileUrl": { + "shape": "SensitiveStringType" + }, + "Timezone": { + "shape": "SensitiveStringType" + }, + "Title": { + "shape": "SensitiveStringType" + }, + "UserId": { + "shape": "ResourceId" + }, + "UserName": { + "shape": "UserName" + }, + "UserType": { + "shape": "SensitiveStringType" + } + }, + "required": [ + "UserId", + "IdentityStoreId" + ], + "type": "structure" + }, + "UserName": { + "max": 128, + "min": 1, + "pattern": "[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+", + "sensitive": true, + "type": "string" + }, + "Users": { + "member": { + "shape": "User" + }, + "type": "list" + }, + "ValidationException": { + "exception": true, + "members": { + "Message": { + "shape": "ExceptionMessage" + }, + "RequestId": { + "shape": "RequestId" + } + }, + "type": "structure" } - } -} + }, + "version": "2.0" +} \ No newline at end of file diff --git a/models/apis/identitystore/2020-06-15/docs-2.json b/models/apis/identitystore/2020-06-15/docs-2.json index 45f4580bca..c48707cf3a 100644 --- a/models/apis/identitystore/2020-06-15/docs-2.json +++ b/models/apis/identitystore/2020-06-15/docs-2.json @@ -1,11 +1,26 @@ { "version": "2.0", - "service": "

The Identity Store service used by AWS IAM Identity Center (successor to AWS Single Sign-On) provides a single place to retrieve all of your identities (users and groups). For more information, see the IAM Identity Center User Guide.

Although AWS Single Sign-On was renamed, the sso and identitystore API namespaces will continue to retain their original name for backward compatibility purposes. For more information, see IAM Identity Center rename.

This reference guide describes the identity store operations that you can call programatically and includes detailed information on data types and errors.

", + "service": "

The AWS Single Sign-On (SSO) Identity Store service provides a single place to retrieve all of your identities (users and groups). For more information about AWS, see the AWS Single Sign-On User Guide.

", "operations": { + "CreateGroup": "

Creates a group within the specified identity store.

", + "CreateGroupMembership": "

Creates a relationship between a member and a group. The following identifiers must be specified: GroupId, IdentityStoreId, and MemberId.

", + "CreateUser": "

Creates a new user within the specified identity store.

", + "DeleteGroup": "

Delete a group within an identity store given GroupId.

", + "DeleteGroupMembership": "

Delete a membership within a group given MembershipId.

", + "DeleteUser": "

Deletes a user within an identity store given UserId.

", "DescribeGroup": "

Retrieves the group metadata and attributes from GroupId in an identity store.

", - "DescribeUser": "

Retrieves the user metadata and attributes from UserId in an identity store.

", - "ListGroups": "

Lists the attribute name and value of the group that you specified in the search. We only support DisplayName as a valid filter attribute path currently, and filter is required. This API returns minimum attributes, including GroupId and group DisplayName in the response.

", - "ListUsers": "

Lists the attribute name and value of the user that you specified in the search. We only support UserName as a valid filter attribute path currently, and filter is required. This API returns minimum attributes, including UserId and UserName in the response.

" + "DescribeGroupMembership": "

Retrieves membership metadata and attributes from MembershipId in a group.

", + "DescribeUser": "

Retrieves the user metadata and attributes from the UserId in an identity store.

", + "GetGroupId": "

Retrieves GroupId in an identity store.

", + "GetGroupMembershipId": "

Retrieves the MembershipId in a group.

", + "GetUserId": "

Retrieves the UserId in an identity store.

", + "IsMemberInGroups": "

Returns if a member exists in specified groups.

", + "ListGroupMemberships": "

For the specified group in the specified identity store, returns the list of all GroupMembership objects and returns results in paginated form.

", + "ListGroupMembershipsForMember": "

For the specified member in the specified identity store, returns the list of all GroupMembership objects and returns results in paginated form.

", + "ListGroups": "

Filtering for a group by the group DisplayName attribute is deprecated. Instead, use the GetGroupId API action.

Lists all groups in the identity store. Returns a paginated list of complete Group objects.

", + "ListUsers": "

Filtering for a user by the UserName attribute is deprecated. Instead, use the GetUserId API action.

Lists all users in the identity store. Returns a paginated list of complete User objects.

", + "UpdateGroup": "

For the specified group in the specified identity store, updates the group metadata and attributes.

", + "UpdateUser": "

For the specified user in the specified identity store, updates the user metadata and attributes.

" }, "shapes": { "AccessDeniedException": { @@ -13,10 +28,134 @@ "refs": { } }, + "Address": { + "base": "

The address associated with the specified user.

", + "refs": { + "Addresses$member": null + } + }, + "Addresses": { + "base": null, + "refs": { + "CreateUserRequest$Addresses": "

A list of Address objects containing addresses associated with the user.

", + "DescribeUserResponse$Addresses": "

The user's physical address.

", + "User$Addresses": "

A list of Address objects containing addresses associated with the user.

" + } + }, + "AlternateIdentifier": { + "base": "

A unique identifier for the group value that is not the group's primary identifier. This value can be an identifier from an external identity provider (IdP) that is associated with the group or a unique attribute. For example, a unique GroupDisplayName.

", + "refs": { + "GetGroupIdRequest$AlternateIdentifier": "

A unique identifier for the group value that is not the group's primary identifier. This value can be an identifier from an external identity provider (IdP) that is associated with the group or a unique attribute. For example, a unique GroupDisplayName.

", + "GetUserIdRequest$AlternateIdentifier": "

Any unique attribute associated with a user that is not the UserId.

" + } + }, + "AttributeOperation": { + "base": "

An operation that applies to the requested group. This operation might add, replace, or remove an attribute.

", + "refs": { + "AttributeOperations$member": null + } + }, + "AttributeOperations": { + "base": null, + "refs": { + "UpdateGroupRequest$Operations": "

A list of AttributeOperation objects to apply to the requested group. These operations might add, replace, or remove an attribute.

", + "UpdateUserRequest$Operations": "

A list of AttributeOperation objects to apply to the requested user. These operations might add, replace, or remove an attribute.

" + } + }, "AttributePath": { "base": null, "refs": { - "Filter$AttributePath": "

The attribute path that is used to specify which attribute name to search. Length limit is 255 characters. For example, UserName is a valid attribute path for the ListUsers API, and DisplayName is a valid attribute path for the ListGroups API.

" + "AttributeOperation$AttributePath": "

A string representation of the path to a given attribute or sub-attribute. Supports JMESPath.

", + "Filter$AttributePath": "

The attribute path that is used to specify which attribute name to search. Length limit is 255 characters. For example, UserName is a valid attribute path for the ListUsers API, and DisplayName is a valid attribute path for the ListGroups API.

", + "UniqueAttribute$AttributePath": "

A string representation of the path to a given attribute or sub-attribute. Supports JMESPath.

" + } + }, + "AttributeValue": { + "base": "

The value of the attribute.

", + "refs": { + "AttributeOperation$AttributeValue": "

The value of the attribute.

", + "UniqueAttribute$AttributeValue": "

The value of the attribute.

" + } + }, + "ConflictException": { + "base": "

This request cannot be completed for one of the following reasons:

", + "refs": { + } + }, + "ConflictExceptionReason": { + "base": null, + "refs": { + "ConflictException$Reason": "

This request cannot be completed for one of the following reasons:

" + } + }, + "CreateGroupMembershipRequest": { + "base": null, + "refs": { + } + }, + "CreateGroupMembershipResponse": { + "base": null, + "refs": { + } + }, + "CreateGroupRequest": { + "base": null, + "refs": { + } + }, + "CreateGroupResponse": { + "base": null, + "refs": { + } + }, + "CreateUserRequest": { + "base": null, + "refs": { + } + }, + "CreateUserResponse": { + "base": null, + "refs": { + } + }, + "DeleteGroupMembershipRequest": { + "base": null, + "refs": { + } + }, + "DeleteGroupMembershipResponse": { + "base": null, + "refs": { + } + }, + "DeleteGroupRequest": { + "base": null, + "refs": { + } + }, + "DeleteGroupResponse": { + "base": null, + "refs": { + } + }, + "DeleteUserRequest": { + "base": null, + "refs": { + } + }, + "DeleteUserResponse": { + "base": null, + "refs": { + } + }, + "DescribeGroupMembershipRequest": { + "base": null, + "refs": { + } + }, + "DescribeGroupMembershipResponse": { + "base": null, + "refs": { } }, "DescribeGroupRequest": { @@ -39,6 +178,60 @@ "refs": { } }, + "Email": { + "base": "

The email address associated with the user.

", + "refs": { + "Emails$member": null + } + }, + "Emails": { + "base": null, + "refs": { + "CreateUserRequest$Emails": "

A list of Email objects containing email addresses associated with the user.

", + "DescribeUserResponse$Emails": "

The user's email value.

", + "User$Emails": "

A list of Email objects containing email addresses associated with the user.

" + } + }, + "ExceptionMessage": { + "base": null, + "refs": { + "AccessDeniedException$Message": null, + "ConflictException$Message": null, + "InternalServerException$Message": null, + "ResourceNotFoundException$Message": null, + "ServiceQuotaExceededException$Message": null, + "ThrottlingException$Message": null, + "ValidationException$Message": null + } + }, + "ExternalId": { + "base": "

The identifier issued to this resource by an external identity provider.

", + "refs": { + "AlternateIdentifier$ExternalId": "

The identifier issued to this resource by an external identity provider.

", + "ExternalIds$member": null + } + }, + "ExternalIdIdentifier": { + "base": null, + "refs": { + "ExternalId$Id": "

The identifier issued to this resource by an external identity provider.

" + } + }, + "ExternalIdIssuer": { + "base": null, + "refs": { + "ExternalId$Issuer": "

The issuer for an external identifier.

" + } + }, + "ExternalIds": { + "base": null, + "refs": { + "DescribeGroupResponse$ExternalIds": "

A list of ExternalId objects that contains the identifiers issued to this resource by an external identity provider.

", + "DescribeUserResponse$ExternalIds": "

A list of ExternalId objects that contains the identifiers issued to this resource by an external identity provider.

", + "Group$ExternalIds": "

A list of ExternalId objects that contains the identifiers issued to this resource by an external identity provider.

", + "User$ExternalIds": "

A list of ExternalId objects that contains the identifiers issued to this resource by an external identity provider.

" + } + }, "Filter": { "base": "

A query filter used by ListUsers and ListGroups. This filter object provides the attribute name and attribute value to search users or groups.

", "refs": { @@ -48,12 +241,42 @@ "Filters": { "base": null, "refs": { - "ListGroupsRequest$Filters": "

A list of Filter objects, which is used in the ListUsers and ListGroups request.

", - "ListUsersRequest$Filters": "

A list of Filter objects, which is used in the ListUsers and ListGroups request.

" + "ListGroupsRequest$Filters": "

A list of Filter objects that is used in the ListUsers and ListGroups requests.

", + "ListUsersRequest$Filters": "

A list of Filter objects that is used in the ListUsers and ListGroups requests.

" + } + }, + "GetGroupIdRequest": { + "base": null, + "refs": { + } + }, + "GetGroupIdResponse": { + "base": null, + "refs": { + } + }, + "GetGroupMembershipIdRequest": { + "base": null, + "refs": { + } + }, + "GetGroupMembershipIdResponse": { + "base": null, + "refs": { + } + }, + "GetUserIdRequest": { + "base": null, + "refs": { + } + }, + "GetUserIdResponse": { + "base": null, + "refs": { } }, "Group": { - "base": "

A group object, which contains a specified group’s metadata and attributes.

", + "base": "

A group object that contains a specified group’s metadata and attributes.

", "refs": { "Groups$member": null } @@ -61,8 +284,40 @@ "GroupDisplayName": { "base": null, "refs": { - "DescribeGroupResponse$DisplayName": "

Contains the group’s display name value. The length limit is 1,024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in this attribute. The characters <>;:% are excluded. This value is specified at the time that the group is created and stored as an attribute of the group object in the identity store.

", - "Group$DisplayName": "

Contains the group’s display name value. The length limit is 1,024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in this attribute. The characters <>;:% are excluded. This value is specified at the time the group is created and stored as an attribute of the group object in the identity store.

" + "CreateGroupRequest$DisplayName": "

A string containing the name of the group. This value is commonly displayed when the group is referenced.

", + "DescribeGroupResponse$DisplayName": "

The group’s display name value. The length limit is 1,024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in this attribute. The characters <>;:% are excluded. This value is specified at the time that the group is created and stored as an attribute of the group object in the identity store.

", + "Group$DisplayName": "

The group’s display name value. The length limit is 1,024 characters. This value can consist of letters, accented characters, symbols, numbers, punctuation, tab, new line, carriage return, space, and nonbreaking space in this attribute. The characters <>;:% are excluded. This value is specified at the time the group is created and stored as an attribute of the group object in the identity store.

" + } + }, + "GroupIds": { + "base": null, + "refs": { + "IsMemberInGroupsRequest$GroupIds": "

A list of identifiers for groups in the identity store.

" + } + }, + "GroupMembership": { + "base": "

Contains the identifiers for a group, a group member, and a GroupMembership object in the identity store.

", + "refs": { + "GroupMemberships$member": null + } + }, + "GroupMembershipExistenceResult": { + "base": "

Indicates whether a resource is a member of a group in the identity store.

", + "refs": { + "GroupMembershipExistenceResults$member": null + } + }, + "GroupMembershipExistenceResults": { + "base": null, + "refs": { + "IsMemberInGroupsResponse$Results": "

An object containing results of batch IsMemberInGroups call.

" + } + }, + "GroupMemberships": { + "base": null, + "refs": { + "ListGroupMembershipsForMemberResponse$GroupMemberships": "

A list of GroupMembership objects in the group for a specified member.

", + "ListGroupMembershipsResponse$GroupMemberships": "

A list of GroupMembership objects in the group.

" } }, "Groups": { @@ -74,10 +329,37 @@ "IdentityStoreId": { "base": null, "refs": { - "DescribeGroupRequest$IdentityStoreId": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string that contains number and lower case letters. This value is generated at the time that a new identity store is created.

", - "DescribeUserRequest$IdentityStoreId": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string that contains number and lower case letters. This value is generated at the time that a new identity store is created.

", - "ListGroupsRequest$IdentityStoreId": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string that contains number and lower case letters. This value is generated at the time that a new identity store is created.

", - "ListUsersRequest$IdentityStoreId": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string that contains number and lower case letters. This value is generated at the time that a new identity store is created.

" + "CreateGroupMembershipRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "CreateGroupMembershipResponse$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "CreateGroupRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "CreateGroupResponse$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "CreateUserRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "CreateUserResponse$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "DeleteGroupMembershipRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "DeleteGroupRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "DeleteUserRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "DescribeGroupMembershipRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "DescribeGroupMembershipResponse$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "DescribeGroupRequest$IdentityStoreId": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string that contains numbers and lower case letters. This value is generated at the time that a new identity store is created.

", + "DescribeGroupResponse$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "DescribeUserRequest$IdentityStoreId": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string that contains numbers and lower case letters. This value is generated at the time that a new identity store is created.

", + "DescribeUserResponse$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "GetGroupIdRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "GetGroupIdResponse$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "GetGroupMembershipIdRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "GetGroupMembershipIdResponse$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "GetUserIdRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "GetUserIdResponse$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "Group$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "GroupMembership$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "IsMemberInGroupsRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "ListGroupMembershipsForMemberRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "ListGroupMembershipsRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "ListGroupsRequest$IdentityStoreId": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string that contains numbers and lower case letters. This value is generated at the time that a new identity store is created.

", + "ListUsersRequest$IdentityStoreId": "

The globally unique identifier for the identity store, such as d-1234567890. In this example, d- is a fixed prefix, and 1234567890 is a randomly generated string that contains numbers and lower case letters. This value is generated at the time that a new identity store is created.

", + "UpdateGroupRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "UpdateUserRequest$IdentityStoreId": "

The globally unique identifier for the identity store.

", + "User$IdentityStoreId": "

The globally unique identifier for the identity store.

" } }, "InternalServerException": { @@ -85,6 +367,36 @@ "refs": { } }, + "IsMemberInGroupsRequest": { + "base": null, + "refs": { + } + }, + "IsMemberInGroupsResponse": { + "base": null, + "refs": { + } + }, + "ListGroupMembershipsForMemberRequest": { + "base": null, + "refs": { + } + }, + "ListGroupMembershipsForMemberResponse": { + "base": null, + "refs": { + } + }, + "ListGroupMembershipsRequest": { + "base": null, + "refs": { + } + }, + "ListGroupMembershipsResponse": { + "base": null, + "refs": { + } + }, "ListGroupsRequest": { "base": null, "refs": { @@ -108,35 +420,67 @@ "MaxResults": { "base": null, "refs": { - "ListGroupsRequest$MaxResults": "

The maximum number of results to be returned per request. This parameter is used in the ListUsers and ListGroups request to specify how many results to return in one page. The length limit is 50 characters.

", - "ListUsersRequest$MaxResults": "

The maximum number of results to be returned per request. This parameter is used in the ListUsers and ListGroups request to specify how many results to return in one page. The length limit is 50 characters.

" + "ListGroupMembershipsForMemberRequest$MaxResults": "

The maximum number of results to be returned per request. This parameter is used in the ListUsers and ListGroups requests to specify how many results to return in one page. The length limit is 50 characters.

", + "ListGroupMembershipsRequest$MaxResults": "

The maximum number of results to be returned per request. This parameter is used in the ListUsers and ListGroups requests to specify how many results to return in one page. The length limit is 50 characters.

", + "ListGroupsRequest$MaxResults": "

The maximum number of results to be returned per request. This parameter is used in the ListUsers and ListGroups requests to specify how many results to return in one page. The length limit is 50 characters.

", + "ListUsersRequest$MaxResults": "

The maximum number of results to be returned per request. This parameter is used in the ListUsers and ListGroups requests to specify how many results to return in one page. The length limit is 50 characters.

" } }, - "Message": { - "base": null, + "MemberId": { + "base": "

An object containing the identifier of a group member.

", "refs": { - "AccessDeniedException$Message": null, - "InternalServerException$Message": null, - "ResourceNotFoundException$Message": null, - "ThrottlingException$Message": null, - "ValidationException$Message": null + "CreateGroupMembershipRequest$MemberId": "

An object that contains the identifier of a group member. Setting the UserID field to the specific identifier for a user indicates that the user is a member of the group.

", + "DescribeGroupMembershipResponse$MemberId": null, + "GetGroupMembershipIdRequest$MemberId": "

An object that contains the identifier of a group member. Setting the UserID field to the specific identifier for a user indicates that the user is a member of the group.

", + "GroupMembership$MemberId": "

An object that contains the identifier of a group member. Setting the UserID field to the specific identifier for a user indicates that the user is a member of the group.

", + "GroupMembershipExistenceResult$MemberId": "

An object that contains the identifier of a group member. Setting the UserID field to the specific identifier for a user indicates that the user is a member of the group.

", + "IsMemberInGroupsRequest$MemberId": "

An object containing the identifier of a group member.

", + "ListGroupMembershipsForMemberRequest$MemberId": "

An object that contains the identifier of a group member. Setting the UserID field to the specific identifier for a user indicates that the user is a member of the group.

" + } + }, + "Name": { + "base": "

The name of the user.

", + "refs": { + "CreateUserRequest$Name": "

An object containing the user's name.

", + "DescribeUserResponse$Name": "

The name of the user.

", + "User$Name": "

An object containing the user's name.

" } }, "NextToken": { "base": null, "refs": { + "ListGroupMembershipsForMemberRequest$NextToken": "

The pagination token used for the ListUsers, ListGroups and ListGroupMemberships API operations. This value is generated by the identity store service. It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page.

", + "ListGroupMembershipsForMemberResponse$NextToken": "

The pagination token used for the ListUsers, ListGroups and ListGroupMemberships API operations. This value is generated by the identity store service. It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page.

", + "ListGroupMembershipsRequest$NextToken": "

The pagination token used for the ListUsers, ListGroups and ListGroupMemberships API operations. This value is generated by the identity store service. It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page.

", + "ListGroupMembershipsResponse$NextToken": "

The pagination token used for the ListUsers, ListGroups and ListGroupMemberships API operations. This value is generated by the identity store service. It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page.

", "ListGroupsRequest$NextToken": "

The pagination token used for the ListUsers and ListGroups API operations. This value is generated by the identity store service. It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page.

", "ListGroupsResponse$NextToken": "

The pagination token used for the ListUsers and ListGroups API operations. This value is generated by the identity store service. It is returned in the API response if the total results are more than the size of one page. This token is also returned when it1 is used in the API request to search for the next page.

", "ListUsersRequest$NextToken": "

The pagination token used for the ListUsers and ListGroups API operations. This value is generated by the identity store service. It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page.

", "ListUsersResponse$NextToken": "

The pagination token used for the ListUsers and ListGroups API operations. This value is generated by the identity store service. It is returned in the API response if the total results are more than the size of one page. This token is also returned when it is used in the API request to search for the next page.

" } }, + "PhoneNumber": { + "base": "

The phone number associated with the user.

", + "refs": { + "PhoneNumbers$member": null + } + }, + "PhoneNumbers": { + "base": null, + "refs": { + "CreateUserRequest$PhoneNumbers": "

A list of PhoneNumber objects containing phone numbers associated with the user.

", + "DescribeUserResponse$PhoneNumbers": "

A list of PhoneNumber objects associated with a user.

", + "User$PhoneNumbers": "

A list of PhoneNumber objects containing phone numbers associated with the user.

" + } + }, "RequestId": { "base": null, "refs": { "AccessDeniedException$RequestId": "

The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails.

", + "ConflictException$RequestId": "

The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails.

", "InternalServerException$RequestId": "

The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails.

", "ResourceNotFoundException$RequestId": "

The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails.

", + "ServiceQuotaExceededException$RequestId": "

The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails.

", "ThrottlingException$RequestId": "

The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails.

", "ValidationException$RequestId": "

The identifier for each request. This value is a globally unique ID that is generated by the identity store service for each sent request, and is then returned inside the exception if the request fails.

" } @@ -144,12 +488,34 @@ "ResourceId": { "base": null, "refs": { + "CreateGroupMembershipRequest$GroupId": "

The identifier for a group in the identity store.

", + "CreateGroupMembershipResponse$MembershipId": "

The identifier for a GroupMembership in the identity store.

", + "CreateGroupResponse$GroupId": "

The identifier of the newly created group in the identity store.

", + "CreateUserResponse$UserId": "

The identifier of the newly created user in the identity store.

", + "DeleteGroupMembershipRequest$MembershipId": "

The identifier for a GroupMembership in the identity store.

", + "DeleteGroupRequest$GroupId": "

The identifier for a group in the identity store.

", + "DeleteUserRequest$UserId": "

The identifier for a user in the identity store.

", + "DescribeGroupMembershipRequest$MembershipId": "

The identifier for a GroupMembership in the identity store.

", + "DescribeGroupMembershipResponse$MembershipId": "

The identifier for a GroupMembership in the identity store.

", + "DescribeGroupMembershipResponse$GroupId": "

The identifier for a group in the identity store.

", "DescribeGroupRequest$GroupId": "

The identifier for a group in the identity store.

", "DescribeGroupResponse$GroupId": "

The identifier for a group in the identity store.

", "DescribeUserRequest$UserId": "

The identifier for a user in the identity store.

", "DescribeUserResponse$UserId": "

The identifier for a user in the identity store.

", + "GetGroupIdResponse$GroupId": "

The identifier for a group in the identity store.

", + "GetGroupMembershipIdRequest$GroupId": "

The identifier for a group in the identity store.

", + "GetGroupMembershipIdResponse$MembershipId": "

The identifier for a GroupMembership in the identity store.

", + "GetUserIdResponse$UserId": "

The identifier for a user in the identity store.

", "Group$GroupId": "

The identifier for a group in the identity store.

", - "ResourceNotFoundException$ResourceId": "

The identifier for a resource in the identity store, which can be used as UserId or GroupId. The format for ResourceId is either UUID or 1234567890-UUID, where UUID is a randomly generated value for each resource when it is created and 1234567890 represents the IdentityStoreId string value. In the case that the identity store is migrated from a legacy single sign-on identity store, the ResourceId for that identity store will be in the format of UUID. Otherwise, it will be in the 1234567890-UUID format.

", + "GroupIds$member": null, + "GroupMembership$MembershipId": "

The identifier for a GroupMembership object in the identity store.

", + "GroupMembership$GroupId": "

The identifier for a group in the identity store.

", + "GroupMembershipExistenceResult$GroupId": "

The identifier for a group in the identity store.

", + "ListGroupMembershipsRequest$GroupId": "

The identifier for a group in the identity store.

", + "MemberId$UserId": "

An object containing the identifiers of resources that can be members.

", + "ResourceNotFoundException$ResourceId": "

The identifier for a resource in the identity store that can be used as UserId or GroupId. The format for ResourceId is either UUID or 1234567890-UUID, where UUID is a randomly generated value for each resource when it is created and 1234567890 represents the IdentityStoreId string value. In the case that the identity store is migrated from a legacy SSO identity store, the ResourceId for that identity store will be in the format of UUID. Otherwise, it will be in the 1234567890-UUID format.

", + "UpdateGroupRequest$GroupId": "

The identifier for a group in the identity store.

", + "UpdateUserRequest$UserId": "

The identifier for a user in the identity store.

", "User$UserId": "

The identifier for a user in the identity store.

" } }, @@ -161,13 +527,78 @@ "ResourceType": { "base": null, "refs": { - "ResourceNotFoundException$ResourceType": "

The type of resource in the identity store service, which is an enum object. Valid values include USER, GROUP, and IDENTITY_STORE.

" + "ResourceNotFoundException$ResourceType": "

An enum object indicating the type of resource in the identity store service. Valid values include USER, GROUP, and IDENTITY_STORE.

" + } + }, + "RetryAfterSeconds": { + "base": null, + "refs": { + "InternalServerException$RetryAfterSeconds": "

The number of seconds that you would like to wait before retrying the next request.

", + "ThrottlingException$RetryAfterSeconds": "

The number of seconds that you would like to wait before retrying the next request.

" + } + }, + "SensitiveBooleanType": { + "base": null, + "refs": { + "Address$Primary": "

A boolean representing whether this is the primary address for the associated resource.

", + "Email$Primary": "

A boolean representing whether this is the primary email for the associated resource.

", + "GroupMembershipExistenceResult$MembershipExists": "

Indicates whether a membership relation exists or not.

", + "PhoneNumber$Primary": "

A boolean representing whether this is the primary phone number for the associated resource.

" } }, "SensitiveStringType": { "base": null, "refs": { - "Filter$AttributeValue": "

Represents the data for an attribute. Each attribute value is described as a name-value pair.

" + "Address$StreetAddress": "

The street of the address.

", + "Address$Locality": "

A string of the address locality.

", + "Address$Region": "

The region of the address.

", + "Address$PostalCode": "

The postal code of the address.

", + "Address$Country": "

The country of the address.

", + "Address$Formatted": "

A string containing a formatted version of the address for display.

", + "Address$Type": "

A string representing the type of address. For example, \"Home.\"

", + "CreateGroupRequest$Description": "

A string containing the description of the group.

", + "CreateUserRequest$DisplayName": "

A string containing the user's name. This value is typically formatted for display when the user is referenced. For example, \"John Doe.\"

", + "CreateUserRequest$NickName": "

A string containing an alternate name for the user.

", + "CreateUserRequest$ProfileUrl": "

A string containing a URL that may be associated with the user.

", + "CreateUserRequest$UserType": "

A string indicating the user's type. Possible values depend on each customer's specific needs, so they are left unspecified.

", + "CreateUserRequest$Title": "

A string containing the user's title. Possible values are left unspecified given that they depend on each customer's specific needs.

", + "CreateUserRequest$PreferredLanguage": "

A string containing the preferred language of the user. For example, \"American English\" or \"en-us.\"

", + "CreateUserRequest$Locale": "

A string containing the user's geographical region or location.

", + "CreateUserRequest$Timezone": "

A string containing the user's time zone.

", + "DescribeGroupResponse$Description": "

A string containing a description of the group.

", + "DescribeUserResponse$DisplayName": "

The user's name value for display.

", + "DescribeUserResponse$NickName": "

An alternative descriptive name for the user.

", + "DescribeUserResponse$ProfileUrl": "

A URL link for the user's profile.

", + "DescribeUserResponse$UserType": "

A string indicating the user's type.

", + "DescribeUserResponse$Title": "

A string containing the user's title.

", + "DescribeUserResponse$PreferredLanguage": "

The preferred language of the user.

", + "DescribeUserResponse$Locale": "

A string containing the user's geographical region or location.

", + "DescribeUserResponse$Timezone": "

The time zone for a user.

", + "Email$Value": "

A string containing an email address. For example, \"johndoe@amazon.com.\"

", + "Email$Type": "

A string representing the type of address. For example, \"Work.\"

", + "Filter$AttributeValue": "

Represents the data for an attribute. Each attribute value is described as a name-value pair.

", + "Group$Description": "

A string containing a description of the specified group.

", + "Name$Formatted": "

A string containing a formatted version of the name for display.

", + "Name$FamilyName": "

The family name of the user.

", + "Name$GivenName": "

The given name of the user.

", + "Name$MiddleName": "

The middle name of the user.

", + "Name$HonorificPrefix": "

The honorific prefix of the user. For example, \"Dr.\"

", + "Name$HonorificSuffix": "

The honorific suffix of the user. For example, \"M.D.\"

", + "PhoneNumber$Value": "

A string containing a phone number. For example, \"8675309\" or \"+1 (800) 123-4567\".

", + "PhoneNumber$Type": "

A string representing the type of a phone number. For example, \"Mobile.\"

", + "User$DisplayName": "

A string containing the user's name that's formatted for display when the user is referenced. For example, \"John Doe.\"

", + "User$NickName": "

A string containing an alternate name for the user.

", + "User$ProfileUrl": "

A string containing a URL that may be associated with the user.

", + "User$UserType": "

A string indicating the user's type. Possible values depend on each customer's specific needs, so they are left unspecified.

", + "User$Title": "

A string containing the user's title. Possible values depend on each customer's specific needs, so they are left unspecified

", + "User$PreferredLanguage": "

A string containing the preferred language of the user. For example, \"American English\" or \"en-us.\"

", + "User$Locale": "

A string containing the user's geographical region or location.

", + "User$Timezone": "

A string containing the user's time zone.

" + } + }, + "ServiceQuotaExceededException": { + "base": "

The request would cause the number of users or groups in the identity store to exceed the maximum allowed.

", + "refs": { } }, "ThrottlingException": { @@ -175,8 +606,34 @@ "refs": { } }, + "UniqueAttribute": { + "base": "

An entity attribute that's unique to a specific entity.

", + "refs": { + "AlternateIdentifier$UniqueAttribute": "

An entity attribute that's unique to a specific entity.

" + } + }, + "UpdateGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateGroupResponse": { + "base": null, + "refs": { + } + }, + "UpdateUserRequest": { + "base": null, + "refs": { + } + }, + "UpdateUserResponse": { + "base": null, + "refs": { + } + }, "User": { - "base": "

A user object, which contains a specified user’s metadata and attributes.

", + "base": "

A user object that contains a specified user’s metadata and attributes.

", "refs": { "Users$member": null } @@ -184,8 +641,9 @@ "UserName": { "base": null, "refs": { - "DescribeUserResponse$UserName": "

Contains the user’s user name value. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. The characters <>;:% are excluded. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

", - "User$UserName": "

Contains the user’s user name value. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. The characters <>;:% are excluded. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

" + "CreateUserRequest$UserName": "

A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. The characters <>;:% are excluded. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

", + "DescribeUserResponse$UserName": "

The user’s username value. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. The characters <>;:% are excluded. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

", + "User$UserName": "

The user’s user name value. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. The characters <>;:% are excluded. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.

" } }, "Users": { diff --git a/models/apis/identitystore/2020-06-15/paginators-1.json b/models/apis/identitystore/2020-06-15/paginators-1.json index 3277ccaad6..766e7c4675 100644 --- a/models/apis/identitystore/2020-06-15/paginators-1.json +++ b/models/apis/identitystore/2020-06-15/paginators-1.json @@ -1,14 +1,28 @@ { "pagination": { + "ListGroupMemberships": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "GroupMemberships" + }, + "ListGroupMembershipsForMember": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "GroupMemberships" + }, "ListGroups": { "input_token": "NextToken", "output_token": "NextToken", - "limit_key": "MaxResults" + "limit_key": "MaxResults", + "result_key": "Groups" }, "ListUsers": { "input_token": "NextToken", "output_token": "NextToken", - "limit_key": "MaxResults" + "limit_key": "MaxResults", + "result_key": "Users" } } } diff --git a/models/apis/iotthingsgraph/2018-09-06/api-2.json b/models/apis/iotthingsgraph/2018-09-06/api-2.json index f876b32c48..2aabc90cd1 100644 --- a/models/apis/iotthingsgraph/2018-09-06/api-2.json +++ b/models/apis/iotthingsgraph/2018-09-06/api-2.json @@ -26,7 +26,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"InternalFailureException"}, {"shape":"ThrottlingException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "CreateFlowTemplate":{ "name":"CreateFlowTemplate", @@ -42,7 +44,9 @@ {"shape":"ThrottlingException"}, {"shape":"LimitExceededException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "CreateSystemInstance":{ "name":"CreateSystemInstance", @@ -58,7 +62,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"LimitExceededException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "CreateSystemTemplate":{ "name":"CreateSystemTemplate", @@ -73,7 +79,9 @@ {"shape":"ResourceAlreadyExistsException"}, {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "DeleteFlowTemplate":{ "name":"DeleteFlowTemplate", @@ -88,7 +96,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceInUseException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "DeleteNamespace":{ "name":"DeleteNamespace", @@ -101,7 +111,9 @@ "errors":[ {"shape":"InternalFailureException"}, {"shape":"ThrottlingException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "DeleteSystemInstance":{ "name":"DeleteSystemInstance", @@ -116,7 +128,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceInUseException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "DeleteSystemTemplate":{ "name":"DeleteSystemTemplate", @@ -131,7 +145,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceInUseException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "DeploySystemInstance":{ "name":"DeploySystemInstance", @@ -147,7 +163,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceInUseException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "DeprecateFlowTemplate":{ "name":"DeprecateFlowTemplate", @@ -162,7 +180,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "DeprecateSystemTemplate":{ "name":"DeprecateSystemTemplate", @@ -177,7 +197,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "DescribeNamespace":{ "name":"DescribeNamespace", @@ -192,7 +214,9 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalFailureException"}, {"shape":"ThrottlingException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "DissociateEntityFromThing":{ "name":"DissociateEntityFromThing", @@ -207,7 +231,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"InternalFailureException"}, {"shape":"ThrottlingException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "GetEntities":{ "name":"GetEntities", @@ -222,7 +248,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "GetFlowTemplate":{ "name":"GetFlowTemplate", @@ -237,7 +265,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "GetFlowTemplateRevisions":{ "name":"GetFlowTemplateRevisions", @@ -252,7 +282,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "GetNamespaceDeletionStatus":{ "name":"GetNamespaceDeletionStatus", @@ -266,7 +298,9 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalFailureException"}, {"shape":"ThrottlingException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "GetSystemInstance":{ "name":"GetSystemInstance", @@ -281,7 +315,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "GetSystemTemplate":{ "name":"GetSystemTemplate", @@ -296,7 +332,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "GetSystemTemplateRevisions":{ "name":"GetSystemTemplateRevisions", @@ -311,7 +349,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "GetUploadStatus":{ "name":"GetUploadStatus", @@ -326,7 +366,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"InternalFailureException"}, {"shape":"ThrottlingException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "ListFlowExecutionMessages":{ "name":"ListFlowExecutionMessages", @@ -341,7 +383,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "ListTagsForResource":{ "name":"ListTagsForResource", @@ -356,7 +400,9 @@ {"shape":"ResourceAlreadyExistsException"}, {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "SearchEntities":{ "name":"SearchEntities", @@ -370,7 +416,9 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalFailureException"}, {"shape":"ThrottlingException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "SearchFlowExecutions":{ "name":"SearchFlowExecutions", @@ -385,7 +433,9 @@ {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "SearchFlowTemplates":{ "name":"SearchFlowTemplates", @@ -399,7 +449,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "SearchSystemInstances":{ "name":"SearchSystemInstances", @@ -413,7 +465,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "SearchSystemTemplates":{ "name":"SearchSystemTemplates", @@ -427,7 +481,9 @@ {"shape":"InvalidRequestException"}, {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "SearchThings":{ "name":"SearchThings", @@ -442,7 +498,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"InternalFailureException"}, {"shape":"ThrottlingException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "TagResource":{ "name":"TagResource", @@ -457,7 +515,9 @@ {"shape":"ResourceAlreadyExistsException"}, {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "UndeploySystemInstance":{ "name":"UndeploySystemInstance", @@ -473,7 +533,9 @@ {"shape":"InternalFailureException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "UntagResource":{ "name":"UntagResource", @@ -488,7 +550,9 @@ {"shape":"ResourceAlreadyExistsException"}, {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "UpdateFlowTemplate":{ "name":"UpdateFlowTemplate", @@ -503,7 +567,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "UpdateSystemTemplate":{ "name":"UpdateSystemTemplate", @@ -518,7 +584,9 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ThrottlingException"}, {"shape":"InternalFailureException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" }, "UploadEntityDefinitions":{ "name":"UploadEntityDefinitions", @@ -532,7 +600,9 @@ {"shape":"InvalidRequestException"}, {"shape":"InternalFailureException"}, {"shape":"ThrottlingException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"since: 2022-08-30" } }, "shapes":{ diff --git a/models/apis/iotthingsgraph/2018-09-06/docs-2.json b/models/apis/iotthingsgraph/2018-09-06/docs-2.json index d66680d3f8..87d2d2572a 100644 --- a/models/apis/iotthingsgraph/2018-09-06/docs-2.json +++ b/models/apis/iotthingsgraph/2018-09-06/docs-2.json @@ -1,13 +1,13 @@ { "version": "2.0", - "service": "AWS IoT Things Graph

AWS IoT Things Graph provides an integrated set of tools that enable developers to connect devices and services that use different standards, such as units of measure and communication protocols. AWS IoT Things Graph makes it possible to build IoT applications with little to no code by connecting devices and services and defining how they interact at an abstract level.

For more information about how AWS IoT Things Graph works, see the User Guide.

", + "service": "AWS IoT Things Graph

AWS IoT Things Graph provides an integrated set of tools that enable developers to connect devices and services that use different standards, such as units of measure and communication protocols. AWS IoT Things Graph makes it possible to build IoT applications with little to no code by connecting devices and services and defining how they interact at an abstract level.

For more information about how AWS IoT Things Graph works, see the User Guide.

The AWS IoT Things Graph service is discontinued.

", "operations": { "AssociateEntityToThing": "

Associates a device with a concrete thing that is in the user's registry.

A thing can be associated with only one device at a time. If you associate a thing with a new device id, its previous association will be removed.

", "CreateFlowTemplate": "

Creates a workflow template. Workflows can be created only in the user's namespace. (The public namespace contains only entities.) The workflow can contain only entities in the specified namespace. The workflow is validated against the entities in the latest version of the user's namespace unless another namespace version is specified in the request.

", "CreateSystemInstance": "

Creates a system instance.

This action validates the system instance, prepares the deployment-related resources. For Greengrass deployments, it updates the Greengrass group that is specified by the greengrassGroupName parameter. It also adds a file to the S3 bucket specified by the s3BucketName parameter. You need to call DeploySystemInstance after running this action.

For Greengrass deployments, since this action modifies and adds resources to a Greengrass group and an S3 bucket on the caller's behalf, the calling identity must have write permissions to both the specified Greengrass group and S3 bucket. Otherwise, the call will fail with an authorization error.

For cloud deployments, this action requires a flowActionsRoleArn value. This is an IAM role that has permissions to access AWS services, such as AWS Lambda and AWS IoT, that the flow uses when it executes.

If the definition document doesn't specify a version of the user's namespace, the latest version will be used by default.

", "CreateSystemTemplate": "

Creates a system. The system is validated against the entities in the latest version of the user's namespace unless another namespace version is specified in the request.

", "DeleteFlowTemplate": "

Deletes a workflow. Any new system or deployment that contains this workflow will fail to update or deploy. Existing deployments that contain the workflow will continue to run (since they use a snapshot of the workflow taken at the time of deployment).

", - "DeleteNamespace": "

Deletes the specified namespace. This action deletes all of the entities in the namespace. Delete the systems and flows that use entities in the namespace before performing this action.

", + "DeleteNamespace": "

Deletes the specified namespace. This action deletes all of the entities in the namespace. Delete the systems and flows that use entities in the namespace before performing this action. This action takes no request parameters.

", "DeleteSystemInstance": "

Deletes a system instance. Only system instances that have never been deployed, or that have been undeployed can be deleted.

Users can create a new system instance that has the same ID as a deleted system instance.

", "DeleteSystemTemplate": "

Deletes a system. New deployments can't contain the system after its deletion. Existing deployments that contain the system will continue to work because they use a snapshot of the system that is taken when it is deployed.

", "DeploySystemInstance": "

Greengrass and Cloud Deployments

Deploys the system instance to the target specified in CreateSystemInstance.

Greengrass Deployments

If the system or any workflows and entities have been updated before this action is called, then the deployment will create a new Amazon Simple Storage Service resource file and then deploy it.

Since this action creates a Greengrass deployment on the caller's behalf, the calling identity must have write permissions to the specified Greengrass group. Otherwise, the call will fail with an authorization error.

For information about the artifacts that get added to your Greengrass core device when you use this API, see AWS IoT Things Graph and AWS IoT Greengrass.

", diff --git a/models/apis/ivs/2020-07-14/api-2.json b/models/apis/ivs/2020-07-14/api-2.json index d8415fa5bb..475616dca4 100644 --- a/models/apis/ivs/2020-07-14/api-2.json +++ b/models/apis/ivs/2020-07-14/api-2.json @@ -621,6 +621,7 @@ "members":{ "destinationConfiguration":{"shape":"DestinationConfiguration"}, "name":{"shape":"RecordingConfigurationName"}, + "recordingReconnectWindowSeconds":{"shape":"RecordingReconnectWindowSeconds"}, "tags":{"shape":"Tags"}, "thumbnailConfiguration":{"shape":"ThumbnailConfiguration"} } @@ -1011,6 +1012,7 @@ "arn":{"shape":"RecordingConfigurationArn"}, "destinationConfiguration":{"shape":"DestinationConfiguration"}, "name":{"shape":"RecordingConfigurationName"}, + "recordingReconnectWindowSeconds":{"shape":"RecordingReconnectWindowSeconds"}, "state":{"shape":"RecordingConfigurationState"}, "tags":{"shape":"Tags"}, "thumbnailConfiguration":{"shape":"ThumbnailConfiguration"} @@ -1062,6 +1064,11 @@ "INTERVAL" ] }, + "RecordingReconnectWindowSeconds":{ + "type":"integer", + "max":300, + "min":0 + }, "ResourceArn":{ "type":"string", "max":128, diff --git a/models/apis/ivs/2020-07-14/docs-2.json b/models/apis/ivs/2020-07-14/docs-2.json index fa4df15cfa..29fb982f84 100644 --- a/models/apis/ivs/2020-07-14/docs-2.json +++ b/models/apis/ivs/2020-07-14/docs-2.json @@ -589,6 +589,13 @@ "ThumbnailConfiguration$recordingMode": "

Thumbnail recording mode. Default: INTERVAL.

" } }, + "RecordingReconnectWindowSeconds": { + "base": null, + "refs": { + "CreateRecordingConfigurationRequest$recordingReconnectWindowSeconds": "

If a broadcast disconnects and then reconnects within the specified interval, the multiple streams will be considered a single broadcast and merged together. Default: 0.

", + "RecordingConfiguration$recordingReconnectWindowSeconds": "

If a broadcast disconnects and then reconnects within the specified interval, the multiple streams will be considered a single broadcast and merged together. Default: 0.

" + } + }, "ResourceArn": { "base": null, "refs": { diff --git a/models/apis/rds-data/2018-08-01/api-2.json b/models/apis/rds-data/2018-08-01/api-2.json index a5bb52ab59..e2bd8d5c02 100644 --- a/models/apis/rds-data/2018-08-01/api-2.json +++ b/models/apis/rds-data/2018-08-01/api-2.json @@ -148,11 +148,11 @@ "ArrayValue":{ "type":"structure", "members":{ - "arrayValues":{"shape":"ArrayOfArray"}, "booleanValues":{"shape":"BooleanArray"}, - "doubleValues":{"shape":"DoubleArray"}, "longValues":{"shape":"LongArray"}, - "stringValues":{"shape":"StringArray"} + "doubleValues":{"shape":"DoubleArray"}, + "stringValues":{"shape":"StringArray"}, + "arrayValues":{"shape":"ArrayOfArray"} }, "union":true }, @@ -179,12 +179,12 @@ "sql" ], "members":{ - "database":{"shape":"DbName"}, - "parameterSets":{"shape":"SqlParameterSets"}, "resourceArn":{"shape":"Arn"}, - "schema":{"shape":"DbName"}, "secretArn":{"shape":"Arn"}, "sql":{"shape":"SqlStatement"}, + "database":{"shape":"DbName"}, + "schema":{"shape":"DbName"}, + "parameterSets":{"shape":"SqlParameterSets"}, "transactionId":{"shape":"Id"} } }, @@ -201,10 +201,10 @@ "secretArn" ], "members":{ - "database":{"shape":"DbName"}, "resourceArn":{"shape":"Arn"}, - "schema":{"shape":"DbName"}, - "secretArn":{"shape":"Arn"} + "secretArn":{"shape":"Arn"}, + "database":{"shape":"DbName"}, + "schema":{"shape":"DbName"} } }, "BeginTransactionResponse":{ @@ -242,20 +242,20 @@ "ColumnMetadata":{ "type":"structure", "members":{ - "arrayBaseColumnType":{"shape":"Integer"}, + "name":{"shape":"String"}, + "type":{"shape":"Integer"}, + "typeName":{"shape":"String"}, + "label":{"shape":"String"}, + "schemaName":{"shape":"String"}, + "tableName":{"shape":"String"}, "isAutoIncrement":{"shape":"Boolean"}, - "isCaseSensitive":{"shape":"Boolean"}, - "isCurrency":{"shape":"Boolean"}, "isSigned":{"shape":"Boolean"}, - "label":{"shape":"String"}, - "name":{"shape":"String"}, + "isCurrency":{"shape":"Boolean"}, + "isCaseSensitive":{"shape":"Boolean"}, "nullable":{"shape":"Integer"}, "precision":{"shape":"Integer"}, "scale":{"shape":"Integer"}, - "schemaName":{"shape":"String"}, - "tableName":{"shape":"String"}, - "type":{"shape":"Integer"}, - "typeName":{"shape":"String"} + "arrayBaseColumnType":{"shape":"Integer"} } }, "CommitTransactionRequest":{ @@ -297,16 +297,16 @@ "ExecuteSqlRequest":{ "type":"structure", "required":[ - "awsSecretStoreArn", "dbClusterOrInstanceArn", + "awsSecretStoreArn", "sqlStatements" ], "members":{ + "dbClusterOrInstanceArn":{"shape":"Arn"}, "awsSecretStoreArn":{"shape":"Arn"}, + "sqlStatements":{"shape":"SqlStatement"}, "database":{"shape":"DbName"}, - "dbClusterOrInstanceArn":{"shape":"Arn"}, - "schema":{"shape":"DbName"}, - "sqlStatements":{"shape":"SqlStatement"} + "schema":{"shape":"DbName"} } }, "ExecuteSqlResponse":{ @@ -323,39 +323,39 @@ "sql" ], "members":{ - "continueAfterTimeout":{"shape":"Boolean"}, - "database":{"shape":"DbName"}, - "formatRecordsAs":{"shape":"RecordsFormatType"}, - "includeResultMetadata":{"shape":"Boolean"}, - "parameters":{"shape":"SqlParametersList"}, "resourceArn":{"shape":"Arn"}, - "resultSetOptions":{"shape":"ResultSetOptions"}, - "schema":{"shape":"DbName"}, "secretArn":{"shape":"Arn"}, "sql":{"shape":"SqlStatement"}, - "transactionId":{"shape":"Id"} + "database":{"shape":"DbName"}, + "schema":{"shape":"DbName"}, + "parameters":{"shape":"SqlParametersList"}, + "transactionId":{"shape":"Id"}, + "includeResultMetadata":{"shape":"Boolean"}, + "continueAfterTimeout":{"shape":"Boolean"}, + "resultSetOptions":{"shape":"ResultSetOptions"}, + "formatRecordsAs":{"shape":"RecordsFormatType"} } }, "ExecuteStatementResponse":{ "type":"structure", "members":{ + "records":{"shape":"SqlRecords"}, "columnMetadata":{"shape":"Metadata"}, - "formattedRecords":{"shape":"FormattedSqlRecords"}, - "generatedFields":{"shape":"FieldList"}, "numberOfRecordsUpdated":{"shape":"RecordsUpdated"}, - "records":{"shape":"SqlRecords"} + "generatedFields":{"shape":"FieldList"}, + "formattedRecords":{"shape":"FormattedSqlRecords"} } }, "Field":{ "type":"structure", "members":{ - "arrayValue":{"shape":"ArrayValue"}, - "blobValue":{"shape":"Blob"}, - "booleanValue":{"shape":"BoxedBoolean"}, - "doubleValue":{"shape":"BoxedDouble"}, "isNull":{"shape":"BoxedBoolean"}, + "booleanValue":{"shape":"BoxedBoolean"}, "longValue":{"shape":"BoxedLong"}, - "stringValue":{"shape":"String"} + "doubleValue":{"shape":"BoxedDouble"}, + "stringValue":{"shape":"String"}, + "blobValue":{"shape":"Blob"}, + "arrayValue":{"shape":"ArrayValue"} }, "union":true }, @@ -438,8 +438,8 @@ "ResultFrame":{ "type":"structure", "members":{ - "records":{"shape":"Records"}, - "resultSetMetadata":{"shape":"ResultSetMetadata"} + "resultSetMetadata":{"shape":"ResultSetMetadata"}, + "records":{"shape":"Records"} } }, "ResultSetMetadata":{ @@ -491,8 +491,8 @@ "type":"structure", "members":{ "name":{"shape":"ParameterName"}, - "typeHint":{"shape":"TypeHint"}, - "value":{"shape":"Field"} + "value":{"shape":"Field"}, + "typeHint":{"shape":"TypeHint"} } }, "SqlParameterSets":{ @@ -515,8 +515,8 @@ "SqlStatementResult":{ "type":"structure", "members":{ - "numberOfRecordsUpdated":{"shape":"RecordsUpdated"}, - "resultFrame":{"shape":"ResultFrame"} + "resultFrame":{"shape":"ResultFrame"}, + "numberOfRecordsUpdated":{"shape":"RecordsUpdated"} } }, "SqlStatementResults":{ @@ -526,8 +526,8 @@ "StatementTimeoutException":{ "type":"structure", "members":{ - "dbConnectionId":{"shape":"Long"}, - "message":{"shape":"ErrorMessage"} + "message":{"shape":"ErrorMessage"}, + "dbConnectionId":{"shape":"Long"} }, "error":{ "httpStatusCode":400, @@ -575,15 +575,15 @@ "Value":{ "type":"structure", "members":{ - "arrayValues":{"shape":"ArrayValueList"}, - "bigIntValue":{"shape":"BoxedLong"}, + "isNull":{"shape":"BoxedBoolean"}, "bitValue":{"shape":"BoxedBoolean"}, - "blobValue":{"shape":"Blob"}, - "doubleValue":{"shape":"BoxedDouble"}, + "bigIntValue":{"shape":"BoxedLong"}, "intValue":{"shape":"BoxedInteger"}, - "isNull":{"shape":"BoxedBoolean"}, + "doubleValue":{"shape":"BoxedDouble"}, "realValue":{"shape":"BoxedFloat"}, "stringValue":{"shape":"String"}, + "blobValue":{"shape":"Blob"}, + "arrayValues":{"shape":"ArrayValueList"}, "structValue":{"shape":"StructValue"} }, "union":true diff --git a/models/apis/rds-data/2018-08-01/docs-2.json b/models/apis/rds-data/2018-08-01/docs-2.json index 4d34c07df2..ea44ed2d2a 100644 --- a/models/apis/rds-data/2018-08-01/docs-2.json +++ b/models/apis/rds-data/2018-08-01/docs-2.json @@ -1,12 +1,12 @@ { "version": "2.0", - "service": "

Amazon RDS Data Service

Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless DB cluster. To run these statements, you work with the Data Service API.

For more information about the Data Service API, see Using the Data API in the Amazon Aurora User Guide.

", + "service": "

Amazon RDS Data Service

Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless v1 DB cluster. To run these statements, you work with the Data Service API.

The Data Service API isn't supported on Amazon Aurora Serverless v2 DB clusters.

For more information about the Data Service API, see Using the Data API in the Amazon Aurora User Guide.

", "operations": { - "BatchExecuteStatement": "

Runs a batch SQL statement over an array of data.

You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets. Bulk operations can provide a significant performance improvement over individual insert and update operations.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

There isn't a fixed upper limit on the number of parameter sets. However, the maximum size of the HTTP request submitted through the Data API is 4 MiB. If the request exceeds this limit, the Data API returns an error and doesn't process the request. This 4-MiB limit includes the size of the HTTP headers and the JSON notation in the request. Thus, the number of parameter sets that you can include depends on a combination of factors, such as the size of the SQL statement and the size of each parameter set.

The response size limit is 1 MiB. If the call returns more than 1 MiB of response data, the call is terminated.

", - "BeginTransaction": "

Starts a SQL transaction.

 <important> <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.</p> <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.</p> <p>DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p> </important> 
", + "BatchExecuteStatement": "

Runs a batch SQL statement over an array of data.

You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets. Bulk operations can provide a significant performance improvement over individual insert and update operations.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

There isn't a fixed upper limit on the number of parameter sets. However, the maximum size of the HTTP request submitted through the Data API is 4 MiB. If the request exceeds this limit, the Data API returns an error and doesn't process the request. This 4-MiB limit includes the size of the HTTP headers and the JSON notation in the request. Thus, the number of parameter sets that you can include depends on a combination of factors, such as the size of the SQL statement and the size of each parameter set.

The response size limit is 1 MiB. If the call returns more than 1 MiB of response data, the call is terminated.

", + "BeginTransaction": "

Starts a SQL transaction.

A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.

A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.

DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate ExecuteStatement call with continueAfterTimeout enabled.

", "CommitTransaction": "

Ends a SQL transaction started with the BeginTransaction operation and commits the changes.

", - "ExecuteSql": "

Runs one or more SQL statements.

This operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation.

", - "ExecuteStatement": "

Runs a SQL statement against a database.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

If the binary response data from the database is more than 1 MB, the call is terminated.

", + "ExecuteSql": "

Runs one or more SQL statements.

This operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation.

", + "ExecuteStatement": "

Runs a SQL statement against a database.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

If the binary response data from the database is more than 1 MB, the call is terminated.

", "RollbackTransaction": "

Performs a rollback of a transaction. Rolling back a transaction cancels its changes.

" }, "shapes": { @@ -24,8 +24,8 @@ "BeginTransactionRequest$secretArn": "

The name or ARN of the secret that enables access to the DB cluster.

", "CommitTransactionRequest$resourceArn": "

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

", "CommitTransactionRequest$secretArn": "

The name or ARN of the secret that enables access to the DB cluster.

", - "ExecuteSqlRequest$awsSecretStoreArn": "

The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.

For information about creating the secret, see Create a database secret.

", "ExecuteSqlRequest$dbClusterOrInstanceArn": "

The ARN of the Aurora Serverless DB cluster.

", + "ExecuteSqlRequest$awsSecretStoreArn": "

The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.

For information about creating the secret, see Create a database secret.

", "ExecuteStatementRequest$resourceArn": "

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

", "ExecuteStatementRequest$secretArn": "

The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.

For information about creating the secret, see Create a database secret.

", "RollbackTransactionRequest$resourceArn": "

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

", @@ -88,11 +88,11 @@ "base": null, "refs": { "ColumnMetadata$isAutoIncrement": "

A value that indicates whether the column increments automatically.

", - "ColumnMetadata$isCaseSensitive": "

A value that indicates whether the column is case-sensitive.

", - "ColumnMetadata$isCurrency": "

A value that indicates whether the column contains currency values.

", "ColumnMetadata$isSigned": "

A value that indicates whether an integer column is signed.

", - "ExecuteStatementRequest$continueAfterTimeout": "

A value that indicates whether to continue running the statement after the call times out. By default, the statement stops running when the call times out.

For DDL statements, we recommend continuing to run the statement after the call times out. When a DDL statement terminates before it is finished running, it can result in errors and possibly corrupted data structures.

", - "ExecuteStatementRequest$includeResultMetadata": "

A value that indicates whether to include metadata in the results.

" + "ColumnMetadata$isCurrency": "

A value that indicates whether the column contains currency values.

", + "ColumnMetadata$isCaseSensitive": "

A value that indicates whether the column is case-sensitive.

", + "ExecuteStatementRequest$includeResultMetadata": "

A value that indicates whether to include metadata in the results.

", + "ExecuteStatementRequest$continueAfterTimeout": "

A value that indicates whether to continue running the statement after the call times out. By default, the statement stops running when the call times out.

For DDL statements, we recommend continuing to run the statement after the call times out. When a DDL statement terminates before it is finished running, it can result in errors and possibly corrupted data structures.

" } }, "BooleanArray": { @@ -105,10 +105,10 @@ "base": null, "refs": { "BooleanArray$member": null, - "Field$booleanValue": "

A value of Boolean data type.

", "Field$isNull": "

A NULL value.

", - "Value$bitValue": "

A value for a column of BIT data type.

", - "Value$isNull": "

A NULL value.

" + "Field$booleanValue": "

A value of Boolean data type.

", + "Value$isNull": "

A NULL value.

", + "Value$bitValue": "

A value for a column of BIT data type.

" } }, "BoxedDouble": { @@ -171,7 +171,7 @@ "DecimalReturnType": { "base": null, "refs": { - "ResultSetOptions$decimalReturnType": "

A value that indicates how a field of DECIMAL type is represented in the response. The value of STRING, the default, specifies that it is converted to a String value. The value of DOUBLE_OR_LONG specifies that it is converted to a Long value if its scale is 0, or to a Double value otherwise.

Conversion to Double or Long can result in roundoff errors due to precision loss. We recommend converting to String, especially when working with currency values.

" + "ResultSetOptions$decimalReturnType": "

A value that indicates how a field of DECIMAL type is represented in the response. The value of STRING, the default, specifies that it is converted to a String value. The value of DOUBLE_OR_LONG specifies that it is converted to a Long value if its scale is 0, or to a Double value otherwise.

Conversion to Double or Long can result in roundoff errors due to precision loss. We recommend converting to String, especially when working with currency values.

" } }, "DoubleArray": { @@ -249,11 +249,11 @@ "Integer": { "base": null, "refs": { - "ColumnMetadata$arrayBaseColumnType": "

The type of the column.

", + "ColumnMetadata$type": "

The type of the column.

", "ColumnMetadata$nullable": "

A value that indicates whether the column is nullable.

", "ColumnMetadata$precision": "

The precision value of a decimal number column.

", "ColumnMetadata$scale": "

The scale value of a decimal number column.

", - "ColumnMetadata$type": "

The type of the column.

" + "ColumnMetadata$arrayBaseColumnType": "

The type of the column.

" } }, "InternalServerErrorException": { @@ -299,7 +299,7 @@ } }, "Record": { - "base": "

A record returned by a call.

This data structure is only used with the deprecated ExecuteSql operation. Use the BatchExecuteStatement or ExecuteStatement operation instead.

", + "base": "

A record returned by a call.

This data structure is only used with the deprecated ExecuteSql operation. Use the BatchExecuteStatement or ExecuteStatement operation instead.

", "refs": { "Records$member": null } @@ -324,7 +324,7 @@ } }, "ResultFrame": { - "base": "

The result set returned by a SQL statement.

This data structure is only used with the deprecated ExecuteSql operation. Use the BatchExecuteStatement or ExecuteStatement operation instead.

", + "base": "

The result set returned by a SQL statement.

This data structure is only used with the deprecated ExecuteSql operation. Use the BatchExecuteStatement or ExecuteStatement operation instead.

", "refs": { "SqlStatementResult$resultFrame": "

The result set of the SQL statement.

" } @@ -396,7 +396,7 @@ } }, "SqlStatementResult": { - "base": "

The result of a SQL statement.

 <important> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </important> 
", + "base": "

The result of a SQL statement.

 <note> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </note> 
", "refs": { "SqlStatementResults$member": null } @@ -415,11 +415,11 @@ "String": { "base": null, "refs": { - "ColumnMetadata$label": "

The label for the column.

", "ColumnMetadata$name": "

The name of the column.

", + "ColumnMetadata$typeName": "

The database-specific data type of the column.

", + "ColumnMetadata$label": "

The label for the column.

", "ColumnMetadata$schemaName": "

The name of the schema that owns the table that includes the column.

", "ColumnMetadata$tableName": "

The name of the table that includes the column.

", - "ColumnMetadata$typeName": "

The database-specific data type of the column.

", "Field$stringValue": "

A value of string data type.

", "StringArray$member": null, "Value$stringValue": "

A value for a column of string data type.

" @@ -432,7 +432,7 @@ } }, "StructValue": { - "base": "

A structure value returned by a call.

This data structure is only used with the deprecated ExecuteSql operation. Use the BatchExecuteStatement or ExecuteStatement operation instead.

", + "base": "

A structure value returned by a call.

This data structure is only used with the deprecated ExecuteSql operation. Use the BatchExecuteStatement or ExecuteStatement operation instead.

", "refs": { "Value$structValue": "

A value for a column of STRUCT data type.

" } @@ -463,7 +463,7 @@ } }, "Value": { - "base": "

Contains the value of a column.

 <important> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </important> 
", + "base": "

Contains the value of a column.

 <note> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </note> 
", "refs": { "ArrayValueList$member": null, "Row$member": null diff --git a/models/apis/sagemaker/2017-07-24/api-2.json b/models/apis/sagemaker/2017-07-24/api-2.json index 982427e3d9..4983320ec8 100644 --- a/models/apis/sagemaker/2017-07-24/api-2.json +++ b/models/apis/sagemaker/2017-07-24/api-2.json @@ -14639,6 +14639,18 @@ "S3OutputUri":{"shape":"S3Uri"} } }, + "RecommendationJobContainerConfig":{ + "type":"structure", + "members":{ + "Domain":{"shape":"String"}, + "Task":{"shape":"String"}, + "Framework":{"shape":"String"}, + "FrameworkVersion":{"shape":"String"}, + "PayloadConfig":{"shape":"RecommendationJobPayloadConfig"}, + "NearestModelName":{"shape":"String"}, + "SupportedInstanceTypes":{"shape":"RecommendationJobSupportedInstanceTypes"} + } + }, "RecommendationJobDescription":{ "type":"string", "max":128 @@ -14652,7 +14664,8 @@ "TrafficPattern":{"shape":"TrafficPattern"}, "ResourceLimit":{"shape":"RecommendationJobResourceLimit"}, "EndpointConfigurations":{"shape":"EndpointInputConfigurations"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "ContainerConfig":{"shape":"RecommendationJobContainerConfig"} } }, "RecommendationJobName":{ @@ -14668,6 +14681,13 @@ "CompiledOutputConfig":{"shape":"RecommendationJobCompiledOutputConfig"} } }, + "RecommendationJobPayloadConfig":{ + "type":"structure", + "members":{ + "SamplePayloadUrl":{"shape":"String"}, + "SupportedContentTypes":{"shape":"RecommendationJobSupportedContentTypes"} + } + }, "RecommendationJobResourceLimit":{ "type":"structure", "members":{ @@ -14693,6 +14713,14 @@ "ModelLatencyThresholds":{"shape":"ModelLatencyThresholds"} } }, + "RecommendationJobSupportedContentTypes":{ + "type":"list", + "member":{"shape":"String"} + }, + "RecommendationJobSupportedInstanceTypes":{ + "type":"list", + "member":{"shape":"String"} + }, "RecommendationJobType":{ "type":"string", "enum":[ diff --git a/models/apis/sagemaker/2017-07-24/docs-2.json b/models/apis/sagemaker/2017-07-24/docs-2.json index 2cb90af1ea..eca75164a6 100644 --- a/models/apis/sagemaker/2017-07-24/docs-2.json +++ b/models/apis/sagemaker/2017-07-24/docs-2.json @@ -42,7 +42,7 @@ "CreateNotebookInstance": "

Creates an SageMaker notebook instance. A notebook instance is a machine learning (ML) compute instance running on a Jupyter notebook.

In a CreateNotebookInstance request, specify the type of ML compute instance that you want to run. SageMaker launches the instance, installs common libraries that you can use to explore datasets for model training, and attaches an ML storage volume to the notebook instance.

SageMaker also provides a set of example notebooks. Each notebook demonstrates how to use SageMaker with a specific algorithm or with a machine learning framework.

After receiving the request, SageMaker does the following:

  1. Creates a network interface in the SageMaker VPC.

  2. (Option) If you specified SubnetId, SageMaker creates a network interface in your own VPC, which is inferred from the subnet ID that you provide in the input. When creating this network interface, SageMaker attaches the security group that you specified in the request to the network interface that it creates in your VPC.

  3. Launches an EC2 instance of the type specified in the request in the SageMaker VPC. If you specified SubnetId of your VPC, SageMaker specifies both network interfaces when launching this instance. This enables inbound traffic from your own VPC to the notebook instance, assuming that the security groups allow it.

After creating the notebook instance, SageMaker returns its Amazon Resource Name (ARN). You can't change the name of a notebook instance after you create it.

After SageMaker creates the notebook instance, you can connect to the Jupyter server and work in Jupyter notebooks. For example, you can write code to explore a dataset that you can use for model training, train a model, host models by creating SageMaker endpoints, and validate hosted models.

For more information, see How It Works.

", "CreateNotebookInstanceLifecycleConfig": "

Creates a lifecycle configuration that you can associate with a notebook instance. A lifecycle configuration is a collection of shell scripts that run when you create or start a notebook instance.

Each lifecycle configuration script has a limit of 16384 characters.

The value of the $PATH environment variable that is available to both scripts is /sbin:bin:/usr/sbin:/usr/bin.

View CloudWatch Logs for notebook instance lifecycle configurations in log group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook].

Lifecycle configuration scripts cannot run for longer than 5 minutes. If a script runs for longer than 5 minutes, it fails and the notebook instance is not created or started.

For information about notebook instance lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.

", "CreatePipeline": "

Creates a pipeline using a JSON pipeline definition.

", - "CreatePresignedDomainUrl": "

Creates a URL for a specified UserProfile in a Domain. When accessed in a web browser, the user will be automatically signed in to Amazon SageMaker Studio, and granted access to all of the Apps and files associated with the Domain's Amazon Elastic File System (EFS) volume. This operation can only be called when the authentication mode equals IAM.

The IAM role or user used to call this API defines the permissions to access the app. Once the presigned URL is created, no additional permission is required to access this URL. IAM authorization policies for this API are also enforced for every HTTP request and WebSocket frame that attempts to connect to the app.

You can restrict access to this API and to the URL that it returns to a list of IP addresses, Amazon VPCs or Amazon VPC Endpoints that you specify. For more information, see Connect to SageMaker Studio Through an Interface VPC Endpoint .

The URL that you get from a call to CreatePresignedDomainUrl has a default timeout of 5 minutes. You can configure this value using ExpiresInSeconds. If you try to use the URL after the timeout limit expires, you are directed to the Amazon Web Services console sign-in page.

", + "CreatePresignedDomainUrl": "

Creates a URL for a specified UserProfile in a Domain. When accessed in a web browser, the user will be automatically signed in to Amazon SageMaker Studio, and granted access to all of the Apps and files associated with the Domain's Amazon Elastic File System (EFS) volume. This operation can only be called when the authentication mode equals IAM.

The IAM role or user passed to this API defines the permissions to access the app. Once the presigned URL is created, no additional permission is required to access this URL. IAM authorization policies for this API are also enforced for every HTTP request and WebSocket frame that attempts to connect to the app.

You can restrict access to this API and to the URL that it returns to a list of IP addresses, Amazon VPCs or Amazon VPC Endpoints that you specify. For more information, see Connect to SageMaker Studio Through an Interface VPC Endpoint .

The URL that you get from a call to CreatePresignedDomainUrl has a default timeout of 5 minutes. You can configure this value using ExpiresInSeconds. If you try to use the URL after the timeout limit expires, you are directed to the Amazon Web Services console sign-in page.

", "CreatePresignedNotebookInstanceUrl": "

Returns a URL that you can use to connect to the Jupyter server from a notebook instance. In the SageMaker console, when you choose Open next to a notebook instance, SageMaker opens a new tab showing the Jupyter server home page from the notebook instance. The console uses this API to get the URL and show the page.

The IAM role or user used to call this API defines the permissions to access the notebook instance. Once the presigned URL is created, no additional permission is required to access this URL. IAM authorization policies for this API are also enforced for every HTTP request and WebSocket frame that attempts to connect to the notebook instance.

You can restrict access to this API and to the URL that it returns to a list of IP addresses that you specify. Use the NotIpAddress condition operator and the aws:SourceIP condition context key to specify the list of IP addresses that you want to have access to the notebook instance. For more information, see Limit Access to a Notebook Instance by IP Address.

The URL that you get from a call to CreatePresignedNotebookInstanceUrl is valid only for 5 minutes. If you try to use the URL after the 5-minute limit expires, you are directed to the Amazon Web Services console sign-in page.

", "CreateProcessingJob": "

Creates a processing job.

", "CreateProject": "

Creates a machine learning (ML) project that can contain one or more templates that set up an ML pipeline from training to deploying an approved model.

", @@ -51,7 +51,7 @@ "CreateTransformJob": "

Starts a transform job. A transform job uses a trained model to get inferences on a dataset and saves these results to an Amazon S3 location that you specify.

To perform batch transformations, you create a transform job and use the data that you have readily available.

In the request body, you provide the following:

For more information about how batch transformation works, see Batch Transform.

", "CreateTrial": "

Creates an SageMaker trial. A trial is a set of steps called trial components that produce a machine learning model. A trial is part of a single SageMaker experiment.

When you use SageMaker Studio or the SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the Amazon Web Services SDK for Python (Boto), you must use the logging APIs provided by the SDK.

You can add tags to a trial and then use the Search API to search for the tags.

To get a list of all your trials, call the ListTrials API. To view a trial's properties, call the DescribeTrial API. To create a trial component, call the CreateTrialComponent API.

", "CreateTrialComponent": "

Creates a trial component, which is a stage of a machine learning trial. A trial is composed of one or more trial components. A trial component can be used in multiple trials.

Trial components include pre-processing jobs, training jobs, and batch transform jobs.

When you use SageMaker Studio or the SageMaker Python SDK, all experiments, trials, and trial components are automatically tracked, logged, and indexed. When you use the Amazon Web Services SDK for Python (Boto), you must use the logging APIs provided by the SDK.

You can add tags to a trial component and then use the Search API to search for the tags.

", - "CreateUserProfile": "

Creates a user profile. A user profile represents a single user within a domain, and is the main way to reference a \"person\" for the purposes of sharing, reporting, and other user-oriented features. This entity is created when a user onboards to Amazon SageMaker Studio. If an administrator invites a person by email or imports them from SSO, a user profile is automatically created. A user profile is the primary holder of settings for an individual user and has a reference to the user's private Amazon Elastic File System (EFS) home directory.

", + "CreateUserProfile": "

Creates a user profile. A user profile represents a single user within a domain, and is the main way to reference a \"person\" for the purposes of sharing, reporting, and other user-oriented features. This entity is created when a user onboards to Amazon SageMaker Studio. If an administrator invites a person by email or imports them from Amazon Web Services SSO, a user profile is automatically created. A user profile is the primary holder of settings for an individual user and has a reference to the user's private Amazon Elastic File System (EFS) home directory.

", "CreateWorkforce": "

Use this operation to create a workforce. This operation will return an error if a workforce already exists in the Amazon Web Services Region that you specify. You can only create one workforce in each Amazon Web Services Region per Amazon Web Services account.

If you want to create a new workforce in an Amazon Web Services Region where a workforce already exists, use the API operation to delete the existing workforce and then use CreateWorkforce to create a new workforce.

To create a private workforce using Amazon Cognito, you must specify a Cognito user pool in CognitoConfig. You can also create an Amazon Cognito workforce using the Amazon SageMaker console. For more information, see Create a Private Workforce (Amazon Cognito).

To create a private workforce using your own OIDC Identity Provider (IdP), specify your IdP configuration in OidcConfig. Your OIDC IdP must support groups because groups are used by Ground Truth and Amazon A2I to create work teams. For more information, see Create a Private Workforce (OIDC IdP).

", "CreateWorkteam": "

Creates a new work team for labeling your data. A work team is defined by one or more Amazon Cognito user pools. You must first create the user pools before you can create a work team.

You cannot create more than 25 work teams in an account and region.

", "DeleteAction": "

Deletes an action.

", @@ -64,7 +64,7 @@ "DeleteContext": "

Deletes an context.

", "DeleteDataQualityJobDefinition": "

Deletes a data quality monitoring job definition.

", "DeleteDeviceFleet": "

Deletes a fleet.

", - "DeleteDomain": "

Used to delete a domain. If you onboarded with IAM mode, you will need to delete your domain to onboard again using SSO. Use with caution. All of the members of the domain will lose access to their EFS volume, including data, notebooks, and other artifacts.

", + "DeleteDomain": "

Used to delete a domain. If you onboarded with IAM mode, you will need to delete your domain to onboard again using Amazon Web Services SSO. Use with caution. All of the members of the domain will lose access to their EFS volume, including data, notebooks, and other artifacts.

", "DeleteEdgeDeploymentPlan": "

Deletes an edge deployment plan if (and only if) all the stages in the plan are inactive or there are no stages in the plan.

", "DeleteEdgeDeploymentStage": "

Delete a stage in an edge deployment plan if (and only if) the stage is inactive.

", "DeleteEndpoint": "

Deletes an endpoint. SageMaker frees up all of the resources that were deployed when the endpoint was created.

SageMaker retires any custom KMS key grants associated with the endpoint, meaning you don't need to use the RevokeGrant API call.

When you delete your endpoint, SageMaker asynchronously deletes associated endpoint resources such as KMS key grants. You might still see these resources in your account for a few minutes after deleting your endpoint. Do not delete or revoke the permissions for your ExecutionRoleArn , otherwise SageMaker cannot delete these resources.

", @@ -5115,7 +5115,7 @@ "HyperParameterTuningInstanceConfigs": { "base": null, "refs": { - "HyperParameterTuningResourceConfig$InstanceConfigs": "

A list containing the configuration(s) for one or more resources for processing hyperparameter jobs. These resources include compute instances and storage volumes to use in model training jobs launched by hyperparameter tuning jobs. The AllocationStrategy controls the order in which multiple configurations provided in InstanceConfigs are used.

If you only want to use a single InstanceConfig inside the HyperParameterTuningResourceConfig API, do not provide a value for InstanceConfigs. Instead, use InstanceType, VolumeSizeInGB and InstanceCount. If you use InstanceConfigs, do not provide values for InstanceType, VolumeSizeInGB or InstanceCount.

" + "HyperParameterTuningResourceConfig$InstanceConfigs": "

A list containing the configuration(s) for one or more resources for processing hyperparameter jobs. These resources include compute instances and storage volumes to use in model training jobs launched by hyperparameter tuning jobs. The AllocationStrategy controls the order in which multiple configurations provided in InstanceConfigs are used.

If you only want to use a single instance configuration inside the HyperParameterTuningResourceConfig API, do not provide a value for InstanceConfigs. Instead, use InstanceType, VolumeSizeInGB and InstanceCount. If you use InstanceConfigs, do not provide values for InstanceType, VolumeSizeInGB or InstanceCount.

" } }, "HyperParameterTuningJobArn": { @@ -5217,9 +5217,9 @@ } }, "HyperParameterTuningResourceConfig": { - "base": "

The configuration of resources, including compute instances and storage volumes for use in training jobs launched by hyperparameter tuning jobs. Specify one or more instance type and count and the allocation strategy for instance selection.

HyperParameterTuningResourceConfig supports all of the capabilities of ResourceConfig with added functionality for flexible instance management.

", + "base": "

The configuration of resources, including compute instances and storage volumes for use in training jobs launched by hyperparameter tuning jobs. Specify one or more instance type and count and the allocation strategy for instance selection.

HyperParameterTuningResourceConfig supports all of the capabilities of ResourceConfig with added functionality for flexible instance management.

", "refs": { - "HyperParameterTrainingJobDefinition$HyperParameterTuningResourceConfig": "

The configuration for the hyperparameter tuning resources, including the compute instances and storage volumes, used for training jobs launched by the tuning job. By default, storage volumes hold model artifacts and incremental states. Choose File for TrainingInputMode in the AlgorithmSpecificationparameter to additionally store training data in the storage volume (optional).

" + "HyperParameterTrainingJobDefinition$HyperParameterTuningResourceConfig": "

The configuration for the hyperparameter tuning resources, including the compute instances and storage volumes, used for training jobs launched by the tuning job. By default, storage volumes hold model artifacts and incremental states. Choose File for TrainingInputMode in the AlgorithmSpecification parameter to additionally store training data in the storage volume (optional).

" } }, "HyperParameterValue": { @@ -5757,7 +5757,7 @@ "DescribeNotebookInstanceOutput$KmsKeyId": "

The Amazon Web Services KMS key ID SageMaker uses to encrypt data when storing it on the ML storage volume attached to the instance.

", "EdgeOutputConfig$KmsKeyId": "

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account.

", "FlowDefinitionOutputConfig$KmsKeyId": "

The Amazon Key Management Service (KMS) key ID for server-side encryption.

", - "HyperParameterTuningResourceConfig$VolumeKmsKeyId": "

A key used by AWS Key Management Service to encrypt data on the storage volume attached to the compute instances used to run the training job. You can use either of the following formats to specify a key.

KMS Key ID:

\"1234abcd-12ab-34cd-56ef-1234567890ab\"

Amazon Resource Name (ARN) of a AWS KMS key:

\"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"

Some instances use local storage, which use a hardware module to encrypt storage volumes. If you choose one of these instance types, you cannot request a VolumeKmsKeyId. For a list of instance types that use local storage, see instance store volumes. For more information about AWS Key Management Service, see AWS KMS encryption for more information.

", + "HyperParameterTuningResourceConfig$VolumeKmsKeyId": "

A key used by Amazon Web Services Key Management Service to encrypt data on the storage volume attached to the compute instances used to run the training job. You can use either of the following formats to specify a key.

KMS Key ID:

\"1234abcd-12ab-34cd-56ef-1234567890ab\"

Amazon Resource Name (ARN) of a KMS key:

\"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"

Some instances use local storage, which use a hardware module to encrypt storage volumes. If you choose one of these instance types, you cannot request a VolumeKmsKeyId. For a list of instance types that use local storage, see instance store volumes. For more information about Amazon Web Services Key Management Service, see KMS encryption for more information.

", "LabelingJobOutputConfig$KmsKeyId": "

The Amazon Web Services Key Management Service ID of the key used to encrypt the output data, if any.

If you provide your own KMS key ID, you must add the required permissions to your KMS key described in Encrypt Output Data and Storage Volume with Amazon Web Services KMS.

If you don't provide a KMS key ID, Amazon SageMaker uses the default Amazon Web Services KMS key for Amazon S3 for your role's account to encrypt your output data.

If you use a bucket policy with an s3:PutObject permission that only allows objects with server-side encryption, set the condition key of s3:x-amz-server-side-encryption to \"aws:kms\". For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.

", "LabelingJobResourceConfig$VolumeKmsKeyId": "

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training and inference jobs used for automated data labeling.

You can only specify a VolumeKmsKeyId when you create a labeling job with automated data labeling enabled using the API operation CreateLabelingJob. You cannot specify an Amazon Web Services KMS key to encrypt the storage volume used for automated data labeling model training and inference when you create a labeling job using the console. To learn more, see Output Data and Storage Volume Encryption.

The VolumeKmsKeyId can be any of the following formats:

", "MonitoringClusterConfig$VolumeKmsKeyId": "

The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.

", @@ -6881,13 +6881,13 @@ "MaxRuntimeInSeconds": { "base": null, "refs": { - "StoppingCondition$MaxRuntimeInSeconds": "

The maximum length of time, in seconds, that a training or compilation job can run.

For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

" + "StoppingCondition$MaxRuntimeInSeconds": "

The maximum length of time, in seconds, that a training or compilation job can run before it is stopped.

For compilation jobs, if the job does not complete during this time, a TimeOut error is generated. We recommend starting with 900 seconds and increasing as necessary based on your model.

For all other jobs, if the job does not complete during this time, SageMaker ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds specifies the maximum time for all of the attempts in total, not each individual attempt. The default value is 1 day. The maximum value is 28 days.

The maximum time that a TrainingJob can run in total, including any time spent publishing metrics or archiving and uploading models after it has been stopped, is 30 days.

" } }, "MaxRuntimePerTrainingJobInSeconds": { "base": null, "refs": { - "AutoMLJobCompletionCriteria$MaxRuntimePerTrainingJobInSeconds": "

The maximum time, in seconds, that each training job is allowed to run as part of a hyperparameter tuning job. For more information, see the used by the action.

" + "AutoMLJobCompletionCriteria$MaxRuntimePerTrainingJobInSeconds": "

The maximum time, in seconds, that each training job executed inside hyperparameter tuning is allowed to run as part of a hyperparameter tuning job. For more information, see the used by the action.

" } }, "MaxWaitTimeInSeconds": { @@ -8352,7 +8352,7 @@ "base": null, "refs": { "DebugRuleConfiguration$VolumeSizeInGB": "

The size, in GB, of the ML storage volume attached to the processing instance.

", - "HyperParameterTuningResourceConfig$VolumeSizeInGB": "

The volume size in GB for the storage volume to be used in processing hyperparameter optimization jobs (optional). These volumes store model artifacts, incremental states and optionally, scratch space for training algorithms. Do not provide a value for this parameter if a value for InstanceConfigs is also specified.

Some instance types have a fixed total local storage size. If you select one of these instances for training, VolumeSizeInGB cannot be greater than this total size. For a list of instance types with local instance storage and their sizes, see instance store volumes.

SageMaker supports only the General Purpose SSD (gp2) storage volume type.

", + "HyperParameterTuningResourceConfig$VolumeSizeInGB": "

The volume size in GB for the storage volume to be used in processing hyperparameter optimization jobs (optional). These volumes store model artifacts, incremental states and optionally, scratch space for training algorithms. Do not provide a value for this parameter if a value for InstanceConfigs is also specified.

Some instance types have a fixed total local storage size. If you select one of these instances for training, VolumeSizeInGB cannot be greater than this total size. For a list of instance types with local instance storage and their sizes, see instance store volumes.

SageMaker supports only the General Purpose SSD (gp2) storage volume type.

", "ProfilerRuleConfiguration$VolumeSizeInGB": "

The size, in GB, of the ML storage volume attached to the processing instance.

" } }, @@ -9403,6 +9403,12 @@ "RecommendationJobOutputConfig$CompiledOutputConfig": "

Provides information about the output configuration for the compiled model.

" } }, + "RecommendationJobContainerConfig": { + "base": "

Specifies mandatory fields for running an Inference Recommender job directly in the CreateInferenceRecommendationsJob API. The fields specified in ContainerConfig override the corresponding fields in the model package. Use ContainerConfig if you want to specify these fields for the recommendation job but don't want to edit them in your model package.

", + "refs": { + "RecommendationJobInputConfig$ContainerConfig": "

Specifies mandatory fields for running an Inference Recommender job. The fields specified in ContainerConfig override the corresponding fields in the model package.

" + } + }, "RecommendationJobDescription": { "base": null, "refs": { @@ -9434,6 +9440,12 @@ "CreateInferenceRecommendationsJobRequest$OutputConfig": "

Provides information about the output artifacts and the KMS key to use for Amazon S3 server-side encryption.

" } }, + "RecommendationJobPayloadConfig": { + "base": "

The configuration for the payload for a recommendation job.

", + "refs": { + "RecommendationJobContainerConfig$PayloadConfig": "

Specifies the SamplePayloadUrl and all other sample payload-related fields.

" + } + }, "RecommendationJobResourceLimit": { "base": "

Specifies the maximum number of jobs that can run in parallel and the maximum number of jobs that can run.

", "refs": { @@ -9455,6 +9467,18 @@ "DescribeInferenceRecommendationsJobResponse$StoppingConditions": "

The stopping conditions that you provided when you initiated the job.

" } }, + "RecommendationJobSupportedContentTypes": { + "base": null, + "refs": { + "RecommendationJobPayloadConfig$SupportedContentTypes": "

The supported MIME types for the input data.

" + } + }, + "RecommendationJobSupportedInstanceTypes": { + "base": null, + "refs": { + "RecommendationJobContainerConfig$SupportedInstanceTypes": "

A list of the instance types that are used to generate inferences in real-time.

" + } + }, "RecommendationJobType": { "base": null, "refs": { @@ -10084,8 +10108,8 @@ "SingleSignOnUserIdentifier": { "base": null, "refs": { - "CreateUserProfileRequest$SingleSignOnUserIdentifier": "

A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value is \"UserName\". If the Domain's AuthMode is SSO, this field is required. If the Domain's AuthMode is not SSO, this field cannot be specified.

", - "DescribeUserProfileResponse$SingleSignOnUserIdentifier": "

The SSO user identifier.

" + "CreateUserProfileRequest$SingleSignOnUserIdentifier": "

A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value is \"UserName\". If the Domain's AuthMode is Amazon Web Services SSO, this field is required. If the Domain's AuthMode is not Amazon Web Services SSO, this field cannot be specified.

", + "DescribeUserProfileResponse$SingleSignOnUserIdentifier": "

The Amazon Web Services SSO user identifier.

" } }, "SnsTopicArn": { @@ -10459,6 +10483,14 @@ "ProductListings$member": null, "RStudioServerProDomainSettings$RStudioConnectUrl": "

A URL pointing to an RStudio Connect server.

", "RStudioServerProDomainSettings$RStudioPackageManagerUrl": "

A URL pointing to an RStudio Package Manager server.

", + "RecommendationJobContainerConfig$Domain": "

The machine learning domain of the model and its components.

Valid Values: COMPUTER_VISION | NATURAL_LANGUAGE_PROCESSING | MACHINE_LEARNING

", + "RecommendationJobContainerConfig$Task": "

The machine learning task that the model accomplishes.

Valid Values: IMAGE_CLASSIFICATION | OBJECT_DETECTION | TEXT_GENERATION | IMAGE_SEGMENTATION | FILL_MASK | CLASSIFICATION | REGRESSION | OTHER

", + "RecommendationJobContainerConfig$Framework": "

The machine learning framework of the container image.

Valid Values: TENSORFLOW | PYTORCH | XGBOOST | SAGEMAKER-SCIKIT-LEARN

", + "RecommendationJobContainerConfig$FrameworkVersion": "

The framework version of the container image.

", + "RecommendationJobContainerConfig$NearestModelName": "

The name of a pre-trained machine learning model benchmarked by Amazon SageMaker Inference Recommender that matches your model.

Valid Values: efficientnetb7 | unet | xgboost | faster-rcnn-resnet101 | nasnetlarge | vgg16 | inception-v3 | mask-rcnn | sagemaker-scikit-learn | densenet201-gluon | resnet18v2-gluon | xception | densenet201 | yolov4 | resnet152 | bert-base-cased | xceptionV1-keras | resnet50 | retinanet

", + "RecommendationJobPayloadConfig$SamplePayloadUrl": "

The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).

", + "RecommendationJobSupportedContentTypes$member": null, + "RecommendationJobSupportedInstanceTypes$member": null, "RenderUiTemplateResponse$RenderedContent": "

A Liquid template that renders the HTML for the worker UI.

", "RenderingError$Code": "

A unique identifier for a specific class of errors.

", "RenderingError$Message": "

A human-readable message describing the error.

", @@ -10533,12 +10565,12 @@ "CreateActionRequest$ActionType": "

The action type.

", "CreateArtifactRequest$ArtifactType": "

The artifact type.

", "CreateContextRequest$ContextType": "

The context type.

", - "CreateUserProfileRequest$SingleSignOnUserValue": "

The username of the associated Amazon Web Services Single Sign-On User for this UserProfile. If the Domain's AuthMode is SSO, this field is required, and must match a valid username of a user in your directory. If the Domain's AuthMode is not SSO, this field cannot be specified.

", + "CreateUserProfileRequest$SingleSignOnUserValue": "

The username of the associated Amazon Web Services Single Sign-On User for this UserProfile. If the Domain's AuthMode is Amazon Web Services SSO, this field is required, and must match a valid username of a user in your directory. If the Domain's AuthMode is not Amazon Web Services SSO, this field cannot be specified.

", "DescribeActionResponse$ActionType": "

The type of the action.

", "DescribeArtifactResponse$ArtifactType": "

The type of the artifact.

", "DescribeContextResponse$ContextType": "

The type of the context.

", - "DescribeDomainResponse$SingleSignOnManagedApplicationInstanceId": "

The SSO managed application instance ID.

", - "DescribeUserProfileResponse$SingleSignOnUserValue": "

The SSO user value.

", + "DescribeDomainResponse$SingleSignOnManagedApplicationInstanceId": "

The Amazon Web Services SSO managed application instance ID.

", + "DescribeUserProfileResponse$SingleSignOnUserValue": "

The Amazon Web Services SSO user value.

", "EMRStepMetadata$ClusterId": "

The identifier of the EMR cluster.

", "EMRStepMetadata$StepId": "

The identifier of the EMR cluster step.

", "EMRStepMetadata$StepName": "

The name of the EMR cluster step.

", @@ -12307,7 +12339,7 @@ "base": null, "refs": { "HyperParameterTuningInstanceConfig$VolumeSizeInGB": "

The volume size in GB of the data to be processed for hyperparameter optimization (optional).

", - "ResourceConfig$VolumeSizeInGB": "

The size of the ML storage volume that you want to provision.

ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

You must specify sufficient ML storage for your scenario.

SageMaker supports only the General Purpose SSD (gp2) ML storage volume type.

Certain Nitro-based instances include local storage with a fixed total size, dependent on the instance type. When using these instances for training, SageMaker mounts the local instance storage instead of Amazon EBS gp2 storage. You can't request a VolumeSizeInGB greater than the total size of the local instance storage.

For a list of instance types that support local instance storage, including the total size per instance type, see Instance Store Volumes.

" + "ResourceConfig$VolumeSizeInGB": "

The size of the ML storage volume that you want to provision.

ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML storage volume for scratch space. If you want to store the training data in the ML storage volume, choose File as the TrainingInputMode in the algorithm specification.

When using an ML instance with NVMe SSD volumes, SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. Available storage is fixed to the NVMe-type instance's storage capacity. SageMaker configures storage paths for training datasets, checkpoints, model artifacts, and outputs to use the entire capacity of the instance storage. For example, ML instance families with the NVMe-type instance storage include ml.p4d, ml.g4dn, and ml.g5.

When using an ML instance with the EBS-only storage option and without instance storage, you must define the size of EBS volume through VolumeSizeInGB in the ResourceConfig API. For example, ML instance families that use EBS volumes include ml.c5 and ml.p2.

To look up instance types and their instance storage types and volumes, see Amazon EC2 Instance Types.

To find the default local paths defined by the SageMaker training platform, see Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, Model Artifacts, and Outputs.

" } }, "VpcConfig": { diff --git a/service/cloudfront/api.go b/service/cloudfront/api.go index 30b8a8a552..acb42077f8 100644 --- a/service/cloudfront/api.go +++ b/service/cloudfront/api.go @@ -5143,7 +5143,7 @@ func (c *CloudFront) GetOriginAccessControlRequest(input *GetOriginAccessControl // GetOriginAccessControl API operation for Amazon CloudFront. // -// Gets a CloudFront origin access control. +// Gets a CloudFront origin access control, including its unique identifier. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5225,7 +5225,7 @@ func (c *CloudFront) GetOriginAccessControlConfigRequest(input *GetOriginAccessC // GetOriginAccessControlConfig API operation for Amazon CloudFront. // -// Gets a CloudFront origin access control. +// Gets a CloudFront origin access control configuration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -20220,7 +20220,7 @@ type GetOriginAccessControlConfigOutput struct { // The version identifier for the current version of the origin access control. ETag *string `location:"header" locationName:"ETag" type:"string"` - // Contains an origin access control. + // Contains an origin access control configuration. OriginAccessControlConfig *OriginAccessControlConfig `type:"structure"` } @@ -20309,7 +20309,7 @@ type GetOriginAccessControlOutput struct { // The version identifier for the current version of the origin access control. ETag *string `location:"header" locationName:"ETag" type:"string"` - // Contains an origin access control. + // Contains an origin access control, including its unique identifier. OriginAccessControl *OriginAccessControl `type:"structure"` } @@ -24372,7 +24372,7 @@ func (s *Origin) SetS3OriginConfig(v *S3OriginConfig) *Origin { return s } -// A CloudFront origin access control. +// A CloudFront origin access control, including its unique identifier. type OriginAccessControl struct { _ struct{} `type:"structure"` @@ -24415,7 +24415,7 @@ func (s *OriginAccessControl) SetOriginAccessControlConfig(v *OriginAccessContro return s } -// A CloudFront origin access control. +// A CloudFront origin access control configuration. type OriginAccessControlConfig struct { _ struct{} `type:"structure"` @@ -24454,8 +24454,7 @@ type OriginAccessControlConfig struct { // contains the Authorization header, then CloudFront doesn't sign the origin // request and instead passes along the Authorization header from the viewer // request. WARNING: To pass along the Authorization header from the viewer - // request, you must add the Authorization header to an origin request policy - // (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html) + // request, you must add the Authorization header to a cache policy (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html) // for all cache behaviors that use origins associated with this origin access // control. // diff --git a/service/identitystore/api.go b/service/identitystore/api.go index ba97a1c491..a74dd5792c 100644 --- a/service/identitystore/api.go +++ b/service/identitystore/api.go @@ -9,263 +9,276 @@ import ( "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -const opDescribeGroup = "DescribeGroup" +const opCreateGroup = "CreateGroup" -// DescribeGroupRequest generates a "aws/request.Request" representing the -// client's request for the DescribeGroup operation. The "output" return +// CreateGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeGroup for more information on using the DescribeGroup +// See CreateGroup for more information on using the CreateGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the DescribeGroupRequest method. -// req, resp := client.DescribeGroupRequest(params) +// // Example sending a request using the CreateGroupRequest method. +// req, resp := client.CreateGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeGroup -func (c *IdentityStore) DescribeGroupRequest(input *DescribeGroupInput) (req *request.Request, output *DescribeGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/CreateGroup +func (c *IdentityStore) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, output *CreateGroupOutput) { op := &request.Operation{ - Name: opDescribeGroup, + Name: opCreateGroup, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeGroupInput{} + input = &CreateGroupInput{} } - output = &DescribeGroupOutput{} + output = &CreateGroupOutput{} req = c.newRequest(op, input, output) return } -// DescribeGroup API operation for AWS SSO Identity Store. +// CreateGroup API operation for AWS SSO Identity Store. // -// Retrieves the group metadata and attributes from GroupId in an identity store. +// Creates a group within the specified identity store. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS SSO Identity Store's -// API operation DescribeGroup for usage and error information. +// API operation CreateGroup for usage and error information. // // Returned Error Types: // // - ResourceNotFoundException // Indicates that a requested resource is not found. // -// - ValidationException -// The request failed because it contains a syntax error. +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. // // - AccessDeniedException // You do not have sufficient access to perform this action. // -// - ThrottlingException -// Indicates that the principal has crossed the throttling limits of the API -// operations. +// - ConflictException +// This request cannot be completed for one of the following reasons: +// +// - Performing the requested operation would violate an existing uniqueness +// claim in the identity store. Resolve the conflict before retrying this +// request. +// +// - The requested resource was being concurrently modified by another request. // // - InternalServerException // The request processing has failed because of an unknown error, exception // or failure with an internal server. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeGroup -func (c *IdentityStore) DescribeGroup(input *DescribeGroupInput) (*DescribeGroupOutput, error) { - req, out := c.DescribeGroupRequest(input) +// - ValidationException +// The request failed because it contains a syntax error. +// +// - ServiceQuotaExceededException +// The request would cause the number of users or groups in the identity store +// to exceed the maximum allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/CreateGroup +func (c *IdentityStore) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error) { + req, out := c.CreateGroupRequest(input) return out, req.Send() } -// DescribeGroupWithContext is the same as DescribeGroup with the addition of +// CreateGroupWithContext is the same as CreateGroup with the addition of // the ability to pass a context and additional request options. // -// See DescribeGroup for details on how to use this API operation. +// See CreateGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IdentityStore) DescribeGroupWithContext(ctx aws.Context, input *DescribeGroupInput, opts ...request.Option) (*DescribeGroupOutput, error) { - req, out := c.DescribeGroupRequest(input) +func (c *IdentityStore) CreateGroupWithContext(ctx aws.Context, input *CreateGroupInput, opts ...request.Option) (*CreateGroupOutput, error) { + req, out := c.CreateGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeUser = "DescribeUser" +const opCreateGroupMembership = "CreateGroupMembership" -// DescribeUserRequest generates a "aws/request.Request" representing the -// client's request for the DescribeUser operation. The "output" return +// CreateGroupMembershipRequest generates a "aws/request.Request" representing the +// client's request for the CreateGroupMembership operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeUser for more information on using the DescribeUser +// See CreateGroupMembership for more information on using the CreateGroupMembership // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the DescribeUserRequest method. -// req, resp := client.DescribeUserRequest(params) +// // Example sending a request using the CreateGroupMembershipRequest method. +// req, resp := client.CreateGroupMembershipRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeUser -func (c *IdentityStore) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/CreateGroupMembership +func (c *IdentityStore) CreateGroupMembershipRequest(input *CreateGroupMembershipInput) (req *request.Request, output *CreateGroupMembershipOutput) { op := &request.Operation{ - Name: opDescribeUser, + Name: opCreateGroupMembership, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeUserInput{} + input = &CreateGroupMembershipInput{} } - output = &DescribeUserOutput{} + output = &CreateGroupMembershipOutput{} req = c.newRequest(op, input, output) return } -// DescribeUser API operation for AWS SSO Identity Store. +// CreateGroupMembership API operation for AWS SSO Identity Store. // -// Retrieves the user metadata and attributes from UserId in an identity store. +// Creates a relationship between a member and a group. The following identifiers +// must be specified: GroupId, IdentityStoreId, and MemberId. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS SSO Identity Store's -// API operation DescribeUser for usage and error information. +// API operation CreateGroupMembership for usage and error information. // // Returned Error Types: // // - ResourceNotFoundException // Indicates that a requested resource is not found. // -// - ValidationException -// The request failed because it contains a syntax error. +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. // // - AccessDeniedException // You do not have sufficient access to perform this action. // -// - ThrottlingException -// Indicates that the principal has crossed the throttling limits of the API -// operations. +// - ConflictException +// This request cannot be completed for one of the following reasons: +// +// - Performing the requested operation would violate an existing uniqueness +// claim in the identity store. Resolve the conflict before retrying this +// request. +// +// - The requested resource was being concurrently modified by another request. // // - InternalServerException // The request processing has failed because of an unknown error, exception // or failure with an internal server. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeUser -func (c *IdentityStore) DescribeUser(input *DescribeUserInput) (*DescribeUserOutput, error) { - req, out := c.DescribeUserRequest(input) +// - ValidationException +// The request failed because it contains a syntax error. +// +// - ServiceQuotaExceededException +// The request would cause the number of users or groups in the identity store +// to exceed the maximum allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/CreateGroupMembership +func (c *IdentityStore) CreateGroupMembership(input *CreateGroupMembershipInput) (*CreateGroupMembershipOutput, error) { + req, out := c.CreateGroupMembershipRequest(input) return out, req.Send() } -// DescribeUserWithContext is the same as DescribeUser with the addition of +// CreateGroupMembershipWithContext is the same as CreateGroupMembership with the addition of // the ability to pass a context and additional request options. // -// See DescribeUser for details on how to use this API operation. +// See CreateGroupMembership for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IdentityStore) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserOutput, error) { - req, out := c.DescribeUserRequest(input) +func (c *IdentityStore) CreateGroupMembershipWithContext(ctx aws.Context, input *CreateGroupMembershipInput, opts ...request.Option) (*CreateGroupMembershipOutput, error) { + req, out := c.CreateGroupMembershipRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListGroups = "ListGroups" +const opCreateUser = "CreateUser" -// ListGroupsRequest generates a "aws/request.Request" representing the -// client's request for the ListGroups operation. The "output" return +// CreateUserRequest generates a "aws/request.Request" representing the +// client's request for the CreateUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListGroups for more information on using the ListGroups +// See CreateUser for more information on using the CreateUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListGroupsRequest method. -// req, resp := client.ListGroupsRequest(params) +// // Example sending a request using the CreateUserRequest method. +// req, resp := client.CreateUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListGroups -func (c *IdentityStore) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, output *ListGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/CreateUser +func (c *IdentityStore) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) { op := &request.Operation{ - Name: opListGroups, + Name: opCreateUser, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListGroupsInput{} + input = &CreateUserInput{} } - output = &ListGroupsOutput{} + output = &CreateUserOutput{} req = c.newRequest(op, input, output) return } -// ListGroups API operation for AWS SSO Identity Store. +// CreateUser API operation for AWS SSO Identity Store. // -// Lists the attribute name and value of the group that you specified in the -// search. We only support DisplayName as a valid filter attribute path currently, -// and filter is required. This API returns minimum attributes, including GroupId -// and group DisplayName in the response. +// Creates a new user within the specified identity store. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS SSO Identity Store's -// API operation ListGroups for usage and error information. +// API operation CreateUser for usage and error information. // // Returned Error Types: // -// - ValidationException -// The request failed because it contains a syntax error. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// // - ResourceNotFoundException // Indicates that a requested resource is not found. // @@ -273,152 +286,209 @@ func (c *IdentityStore) ListGroupsRequest(input *ListGroupsInput) (req *request. // Indicates that the principal has crossed the throttling limits of the API // operations. // +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ConflictException +// This request cannot be completed for one of the following reasons: +// +// - Performing the requested operation would violate an existing uniqueness +// claim in the identity store. Resolve the conflict before retrying this +// request. +// +// - The requested resource was being concurrently modified by another request. +// // - InternalServerException // The request processing has failed because of an unknown error, exception // or failure with an internal server. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListGroups -func (c *IdentityStore) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { - req, out := c.ListGroupsRequest(input) +// - ValidationException +// The request failed because it contains a syntax error. +// +// - ServiceQuotaExceededException +// The request would cause the number of users or groups in the identity store +// to exceed the maximum allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/CreateUser +func (c *IdentityStore) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) return out, req.Send() } -// ListGroupsWithContext is the same as ListGroups with the addition of +// CreateUserWithContext is the same as CreateUser with the addition of // the ability to pass a context and additional request options. // -// See ListGroups for details on how to use this API operation. +// See CreateUser for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IdentityStore) ListGroupsWithContext(ctx aws.Context, input *ListGroupsInput, opts ...request.Option) (*ListGroupsOutput, error) { - req, out := c.ListGroupsRequest(input) +func (c *IdentityStore) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListGroupsPages iterates over the pages of a ListGroups operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opDeleteGroup = "DeleteGroup" + +// DeleteGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListGroups method for more information on how to use this operation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// Note: This operation can generate multiple requests to a service. +// See DeleteGroup for more information on using the DeleteGroup +// API call, and error handling. // -// // Example iterating over at most 3 pages of a ListGroups operation. -// pageNum := 0 -// err := client.ListGroupsPages(params, -// func(page *identitystore.ListGroupsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *IdentityStore) ListGroupsPages(input *ListGroupsInput, fn func(*ListGroupsOutput, bool) bool) error { - return c.ListGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteGroupRequest method. +// req, resp := client.DeleteGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DeleteGroup +func (c *IdentityStore) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, output *DeleteGroupOutput) { + op := &request.Operation{ + Name: opDeleteGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteGroupInput{} + } + + output = &DeleteGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return } -// ListGroupsPagesWithContext same as ListGroupsPages except -// it takes a Context and allows setting request options on the pages. +// DeleteGroup API operation for AWS SSO Identity Store. +// +// Delete a group within an identity store given GroupId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation DeleteGroup for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ConflictException +// This request cannot be completed for one of the following reasons: +// +// - Performing the requested operation would violate an existing uniqueness +// claim in the identity store. Resolve the conflict before retrying this +// request. +// +// - The requested resource was being concurrently modified by another request. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DeleteGroup +func (c *IdentityStore) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error) { + req, out := c.DeleteGroupRequest(input) + return out, req.Send() +} + +// DeleteGroupWithContext is the same as DeleteGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IdentityStore) ListGroupsPagesWithContext(ctx aws.Context, input *ListGroupsInput, fn func(*ListGroupsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListGroupsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListGroupsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListGroupsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() +func (c *IdentityStore) DeleteGroupWithContext(ctx aws.Context, input *DeleteGroupInput, opts ...request.Option) (*DeleteGroupOutput, error) { + req, out := c.DeleteGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -const opListUsers = "ListUsers" +const opDeleteGroupMembership = "DeleteGroupMembership" -// ListUsersRequest generates a "aws/request.Request" representing the -// client's request for the ListUsers operation. The "output" return +// DeleteGroupMembershipRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGroupMembership operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListUsers for more information on using the ListUsers +// See DeleteGroupMembership for more information on using the DeleteGroupMembership // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // -// // Example sending a request using the ListUsersRequest method. -// req, resp := client.ListUsersRequest(params) +// // Example sending a request using the DeleteGroupMembershipRequest method. +// req, resp := client.DeleteGroupMembershipRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListUsers -func (c *IdentityStore) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DeleteGroupMembership +func (c *IdentityStore) DeleteGroupMembershipRequest(input *DeleteGroupMembershipInput) (req *request.Request, output *DeleteGroupMembershipOutput) { op := &request.Operation{ - Name: opListUsers, + Name: opDeleteGroupMembership, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListUsersInput{} + input = &DeleteGroupMembershipInput{} } - output = &ListUsersOutput{} + output = &DeleteGroupMembershipOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// ListUsers API operation for AWS SSO Identity Store. +// DeleteGroupMembership API operation for AWS SSO Identity Store. // -// Lists the attribute name and value of the user that you specified in the -// search. We only support UserName as a valid filter attribute path currently, -// and filter is required. This API returns minimum attributes, including UserId -// and UserName in the response. +// Delete a membership within a group given MembershipId. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS SSO Identity Store's -// API operation ListUsers for usage and error information. +// API operation DeleteGroupMembership for usage and error information. // // Returned Error Types: // -// - ValidationException -// The request failed because it contains a syntax error. -// -// - AccessDeniedException -// You do not have sufficient access to perform this action. -// // - ResourceNotFoundException // Indicates that a requested resource is not found. // @@ -426,94 +496,4697 @@ func (c *IdentityStore) ListUsersRequest(input *ListUsersInput) (req *request.Re // Indicates that the principal has crossed the throttling limits of the API // operations. // +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ConflictException +// This request cannot be completed for one of the following reasons: +// +// - Performing the requested operation would violate an existing uniqueness +// claim in the identity store. Resolve the conflict before retrying this +// request. +// +// - The requested resource was being concurrently modified by another request. +// // - InternalServerException // The request processing has failed because of an unknown error, exception // or failure with an internal server. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListUsers -func (c *IdentityStore) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { - req, out := c.ListUsersRequest(input) +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DeleteGroupMembership +func (c *IdentityStore) DeleteGroupMembership(input *DeleteGroupMembershipInput) (*DeleteGroupMembershipOutput, error) { + req, out := c.DeleteGroupMembershipRequest(input) return out, req.Send() } -// ListUsersWithContext is the same as ListUsers with the addition of +// DeleteGroupMembershipWithContext is the same as DeleteGroupMembership with the addition of // the ability to pass a context and additional request options. // -// See ListUsers for details on how to use this API operation. +// See DeleteGroupMembership for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IdentityStore) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { - req, out := c.ListUsersRequest(input) +func (c *IdentityStore) DeleteGroupMembershipWithContext(ctx aws.Context, input *DeleteGroupMembershipInput, opts ...request.Option) (*DeleteGroupMembershipOutput, error) { + req, out := c.DeleteGroupMembershipRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListUsersPages iterates over the pages of a ListUsers operation, -// calling the "fn" function with the response data for each page. To stop +const opDeleteUser = "DeleteUser" + +// DeleteUserRequest generates a "aws/request.Request" representing the +// client's request for the DeleteUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteUser for more information on using the DeleteUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteUserRequest method. +// req, resp := client.DeleteUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DeleteUser +func (c *IdentityStore) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { + op := &request.Operation{ + Name: opDeleteUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteUserInput{} + } + + output = &DeleteUserOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteUser API operation for AWS SSO Identity Store. +// +// Deletes a user within an identity store given UserId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation DeleteUser for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ConflictException +// This request cannot be completed for one of the following reasons: +// +// - Performing the requested operation would violate an existing uniqueness +// claim in the identity store. Resolve the conflict before retrying this +// request. +// +// - The requested resource was being concurrently modified by another request. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DeleteUser +func (c *IdentityStore) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + return out, req.Send() +} + +// DeleteUserWithContext is the same as DeleteUser with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeGroup = "DescribeGroup" + +// DescribeGroupRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeGroup for more information on using the DescribeGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DescribeGroupRequest method. +// req, resp := client.DescribeGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeGroup +func (c *IdentityStore) DescribeGroupRequest(input *DescribeGroupInput) (req *request.Request, output *DescribeGroupOutput) { + op := &request.Operation{ + Name: opDescribeGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeGroupInput{} + } + + output = &DescribeGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeGroup API operation for AWS SSO Identity Store. +// +// Retrieves the group metadata and attributes from GroupId in an identity store. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation DescribeGroup for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeGroup +func (c *IdentityStore) DescribeGroup(input *DescribeGroupInput) (*DescribeGroupOutput, error) { + req, out := c.DescribeGroupRequest(input) + return out, req.Send() +} + +// DescribeGroupWithContext is the same as DescribeGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) DescribeGroupWithContext(ctx aws.Context, input *DescribeGroupInput, opts ...request.Option) (*DescribeGroupOutput, error) { + req, out := c.DescribeGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeGroupMembership = "DescribeGroupMembership" + +// DescribeGroupMembershipRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGroupMembership operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeGroupMembership for more information on using the DescribeGroupMembership +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DescribeGroupMembershipRequest method. +// req, resp := client.DescribeGroupMembershipRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeGroupMembership +func (c *IdentityStore) DescribeGroupMembershipRequest(input *DescribeGroupMembershipInput) (req *request.Request, output *DescribeGroupMembershipOutput) { + op := &request.Operation{ + Name: opDescribeGroupMembership, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeGroupMembershipInput{} + } + + output = &DescribeGroupMembershipOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeGroupMembership API operation for AWS SSO Identity Store. +// +// Retrieves membership metadata and attributes from MembershipId in a group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation DescribeGroupMembership for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeGroupMembership +func (c *IdentityStore) DescribeGroupMembership(input *DescribeGroupMembershipInput) (*DescribeGroupMembershipOutput, error) { + req, out := c.DescribeGroupMembershipRequest(input) + return out, req.Send() +} + +// DescribeGroupMembershipWithContext is the same as DescribeGroupMembership with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeGroupMembership for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) DescribeGroupMembershipWithContext(ctx aws.Context, input *DescribeGroupMembershipInput, opts ...request.Option) (*DescribeGroupMembershipOutput, error) { + req, out := c.DescribeGroupMembershipRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeUser = "DescribeUser" + +// DescribeUserRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeUser for more information on using the DescribeUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DescribeUserRequest method. +// req, resp := client.DescribeUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeUser +func (c *IdentityStore) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserOutput) { + op := &request.Operation{ + Name: opDescribeUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeUserInput{} + } + + output = &DescribeUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeUser API operation for AWS SSO Identity Store. +// +// Retrieves the user metadata and attributes from the UserId in an identity +// store. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation DescribeUser for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeUser +func (c *IdentityStore) DescribeUser(input *DescribeUserInput) (*DescribeUserOutput, error) { + req, out := c.DescribeUserRequest(input) + return out, req.Send() +} + +// DescribeUserWithContext is the same as DescribeUser with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserOutput, error) { + req, out := c.DescribeUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetGroupId = "GetGroupId" + +// GetGroupIdRequest generates a "aws/request.Request" representing the +// client's request for the GetGroupId operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetGroupId for more information on using the GetGroupId +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetGroupIdRequest method. +// req, resp := client.GetGroupIdRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/GetGroupId +func (c *IdentityStore) GetGroupIdRequest(input *GetGroupIdInput) (req *request.Request, output *GetGroupIdOutput) { + op := &request.Operation{ + Name: opGetGroupId, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetGroupIdInput{} + } + + output = &GetGroupIdOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetGroupId API operation for AWS SSO Identity Store. +// +// Retrieves GroupId in an identity store. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation GetGroupId for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/GetGroupId +func (c *IdentityStore) GetGroupId(input *GetGroupIdInput) (*GetGroupIdOutput, error) { + req, out := c.GetGroupIdRequest(input) + return out, req.Send() +} + +// GetGroupIdWithContext is the same as GetGroupId with the addition of +// the ability to pass a context and additional request options. +// +// See GetGroupId for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) GetGroupIdWithContext(ctx aws.Context, input *GetGroupIdInput, opts ...request.Option) (*GetGroupIdOutput, error) { + req, out := c.GetGroupIdRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetGroupMembershipId = "GetGroupMembershipId" + +// GetGroupMembershipIdRequest generates a "aws/request.Request" representing the +// client's request for the GetGroupMembershipId operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetGroupMembershipId for more information on using the GetGroupMembershipId +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetGroupMembershipIdRequest method. +// req, resp := client.GetGroupMembershipIdRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/GetGroupMembershipId +func (c *IdentityStore) GetGroupMembershipIdRequest(input *GetGroupMembershipIdInput) (req *request.Request, output *GetGroupMembershipIdOutput) { + op := &request.Operation{ + Name: opGetGroupMembershipId, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetGroupMembershipIdInput{} + } + + output = &GetGroupMembershipIdOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetGroupMembershipId API operation for AWS SSO Identity Store. +// +// Retrieves the MembershipId in a group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation GetGroupMembershipId for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/GetGroupMembershipId +func (c *IdentityStore) GetGroupMembershipId(input *GetGroupMembershipIdInput) (*GetGroupMembershipIdOutput, error) { + req, out := c.GetGroupMembershipIdRequest(input) + return out, req.Send() +} + +// GetGroupMembershipIdWithContext is the same as GetGroupMembershipId with the addition of +// the ability to pass a context and additional request options. +// +// See GetGroupMembershipId for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) GetGroupMembershipIdWithContext(ctx aws.Context, input *GetGroupMembershipIdInput, opts ...request.Option) (*GetGroupMembershipIdOutput, error) { + req, out := c.GetGroupMembershipIdRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetUserId = "GetUserId" + +// GetUserIdRequest generates a "aws/request.Request" representing the +// client's request for the GetUserId operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetUserId for more information on using the GetUserId +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetUserIdRequest method. +// req, resp := client.GetUserIdRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/GetUserId +func (c *IdentityStore) GetUserIdRequest(input *GetUserIdInput) (req *request.Request, output *GetUserIdOutput) { + op := &request.Operation{ + Name: opGetUserId, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetUserIdInput{} + } + + output = &GetUserIdOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetUserId API operation for AWS SSO Identity Store. +// +// Retrieves the UserId in an identity store. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation GetUserId for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/GetUserId +func (c *IdentityStore) GetUserId(input *GetUserIdInput) (*GetUserIdOutput, error) { + req, out := c.GetUserIdRequest(input) + return out, req.Send() +} + +// GetUserIdWithContext is the same as GetUserId with the addition of +// the ability to pass a context and additional request options. +// +// See GetUserId for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) GetUserIdWithContext(ctx aws.Context, input *GetUserIdInput, opts ...request.Option) (*GetUserIdOutput, error) { + req, out := c.GetUserIdRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opIsMemberInGroups = "IsMemberInGroups" + +// IsMemberInGroupsRequest generates a "aws/request.Request" representing the +// client's request for the IsMemberInGroups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See IsMemberInGroups for more information on using the IsMemberInGroups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the IsMemberInGroupsRequest method. +// req, resp := client.IsMemberInGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/IsMemberInGroups +func (c *IdentityStore) IsMemberInGroupsRequest(input *IsMemberInGroupsInput) (req *request.Request, output *IsMemberInGroupsOutput) { + op := &request.Operation{ + Name: opIsMemberInGroups, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &IsMemberInGroupsInput{} + } + + output = &IsMemberInGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// IsMemberInGroups API operation for AWS SSO Identity Store. +// +// Returns if a member exists in specified groups. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation IsMemberInGroups for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/IsMemberInGroups +func (c *IdentityStore) IsMemberInGroups(input *IsMemberInGroupsInput) (*IsMemberInGroupsOutput, error) { + req, out := c.IsMemberInGroupsRequest(input) + return out, req.Send() +} + +// IsMemberInGroupsWithContext is the same as IsMemberInGroups with the addition of +// the ability to pass a context and additional request options. +// +// See IsMemberInGroups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) IsMemberInGroupsWithContext(ctx aws.Context, input *IsMemberInGroupsInput, opts ...request.Option) (*IsMemberInGroupsOutput, error) { + req, out := c.IsMemberInGroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListGroupMemberships = "ListGroupMemberships" + +// ListGroupMembershipsRequest generates a "aws/request.Request" representing the +// client's request for the ListGroupMemberships operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListGroupMemberships for more information on using the ListGroupMemberships +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListGroupMembershipsRequest method. +// req, resp := client.ListGroupMembershipsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListGroupMemberships +func (c *IdentityStore) ListGroupMembershipsRequest(input *ListGroupMembershipsInput) (req *request.Request, output *ListGroupMembershipsOutput) { + op := &request.Operation{ + Name: opListGroupMemberships, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListGroupMembershipsInput{} + } + + output = &ListGroupMembershipsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListGroupMemberships API operation for AWS SSO Identity Store. +// +// For the specified group in the specified identity store, returns the list +// of all GroupMembership objects and returns results in paginated form. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation ListGroupMemberships for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListGroupMemberships +func (c *IdentityStore) ListGroupMemberships(input *ListGroupMembershipsInput) (*ListGroupMembershipsOutput, error) { + req, out := c.ListGroupMembershipsRequest(input) + return out, req.Send() +} + +// ListGroupMembershipsWithContext is the same as ListGroupMemberships with the addition of +// the ability to pass a context and additional request options. +// +// See ListGroupMemberships for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) ListGroupMembershipsWithContext(ctx aws.Context, input *ListGroupMembershipsInput, opts ...request.Option) (*ListGroupMembershipsOutput, error) { + req, out := c.ListGroupMembershipsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListGroupMembershipsPages iterates over the pages of a ListGroupMemberships operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListGroupMemberships method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListGroupMemberships operation. +// pageNum := 0 +// err := client.ListGroupMembershipsPages(params, +// func(page *identitystore.ListGroupMembershipsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *IdentityStore) ListGroupMembershipsPages(input *ListGroupMembershipsInput, fn func(*ListGroupMembershipsOutput, bool) bool) error { + return c.ListGroupMembershipsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListGroupMembershipsPagesWithContext same as ListGroupMembershipsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) ListGroupMembershipsPagesWithContext(ctx aws.Context, input *ListGroupMembershipsInput, fn func(*ListGroupMembershipsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListGroupMembershipsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListGroupMembershipsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListGroupMembershipsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListGroupMembershipsForMember = "ListGroupMembershipsForMember" + +// ListGroupMembershipsForMemberRequest generates a "aws/request.Request" representing the +// client's request for the ListGroupMembershipsForMember operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListGroupMembershipsForMember for more information on using the ListGroupMembershipsForMember +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListGroupMembershipsForMemberRequest method. +// req, resp := client.ListGroupMembershipsForMemberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListGroupMembershipsForMember +func (c *IdentityStore) ListGroupMembershipsForMemberRequest(input *ListGroupMembershipsForMemberInput) (req *request.Request, output *ListGroupMembershipsForMemberOutput) { + op := &request.Operation{ + Name: opListGroupMembershipsForMember, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListGroupMembershipsForMemberInput{} + } + + output = &ListGroupMembershipsForMemberOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListGroupMembershipsForMember API operation for AWS SSO Identity Store. +// +// For the specified member in the specified identity store, returns the list +// of all GroupMembership objects and returns results in paginated form. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation ListGroupMembershipsForMember for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListGroupMembershipsForMember +func (c *IdentityStore) ListGroupMembershipsForMember(input *ListGroupMembershipsForMemberInput) (*ListGroupMembershipsForMemberOutput, error) { + req, out := c.ListGroupMembershipsForMemberRequest(input) + return out, req.Send() +} + +// ListGroupMembershipsForMemberWithContext is the same as ListGroupMembershipsForMember with the addition of +// the ability to pass a context and additional request options. +// +// See ListGroupMembershipsForMember for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) ListGroupMembershipsForMemberWithContext(ctx aws.Context, input *ListGroupMembershipsForMemberInput, opts ...request.Option) (*ListGroupMembershipsForMemberOutput, error) { + req, out := c.ListGroupMembershipsForMemberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListGroupMembershipsForMemberPages iterates over the pages of a ListGroupMembershipsForMember operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListGroupMembershipsForMember method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListGroupMembershipsForMember operation. +// pageNum := 0 +// err := client.ListGroupMembershipsForMemberPages(params, +// func(page *identitystore.ListGroupMembershipsForMemberOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *IdentityStore) ListGroupMembershipsForMemberPages(input *ListGroupMembershipsForMemberInput, fn func(*ListGroupMembershipsForMemberOutput, bool) bool) error { + return c.ListGroupMembershipsForMemberPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListGroupMembershipsForMemberPagesWithContext same as ListGroupMembershipsForMemberPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) ListGroupMembershipsForMemberPagesWithContext(ctx aws.Context, input *ListGroupMembershipsForMemberInput, fn func(*ListGroupMembershipsForMemberOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListGroupMembershipsForMemberInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListGroupMembershipsForMemberRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListGroupMembershipsForMemberOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListGroups = "ListGroups" + +// ListGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListGroups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListGroups for more information on using the ListGroups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListGroupsRequest method. +// req, resp := client.ListGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListGroups +func (c *IdentityStore) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, output *ListGroupsOutput) { + op := &request.Operation{ + Name: opListGroups, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListGroupsInput{} + } + + output = &ListGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListGroups API operation for AWS SSO Identity Store. +// +// Filtering for a group by the group DisplayName attribute is deprecated. Instead, +// use the GetGroupId API action. +// +// Lists all groups in the identity store. Returns a paginated list of complete +// Group objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation ListGroups for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListGroups +func (c *IdentityStore) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { + req, out := c.ListGroupsRequest(input) + return out, req.Send() +} + +// ListGroupsWithContext is the same as ListGroups with the addition of +// the ability to pass a context and additional request options. +// +// See ListGroups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) ListGroupsWithContext(ctx aws.Context, input *ListGroupsInput, opts ...request.Option) (*ListGroupsOutput, error) { + req, out := c.ListGroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListGroupsPages iterates over the pages of a ListGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListGroups method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListGroups operation. +// pageNum := 0 +// err := client.ListGroupsPages(params, +// func(page *identitystore.ListGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *IdentityStore) ListGroupsPages(input *ListGroupsInput, fn func(*ListGroupsOutput, bool) bool) error { + return c.ListGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListGroupsPagesWithContext same as ListGroupsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) ListGroupsPagesWithContext(ctx aws.Context, input *ListGroupsInput, fn func(*ListGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListGroupsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListUsers = "ListUsers" + +// ListUsersRequest generates a "aws/request.Request" representing the +// client's request for the ListUsers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListUsers for more information on using the ListUsers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListUsersRequest method. +// req, resp := client.ListUsersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListUsers +func (c *IdentityStore) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { + op := &request.Operation{ + Name: opListUsers, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListUsersInput{} + } + + output = &ListUsersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUsers API operation for AWS SSO Identity Store. +// +// Filtering for a user by the UserName attribute is deprecated. Instead, use +// the GetUserId API action. +// +// Lists all users in the identity store. Returns a paginated list of complete +// User objects. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation ListUsers for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListUsers +func (c *IdentityStore) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) + return out, req.Send() +} + +// ListUsersWithContext is the same as ListUsers with the addition of +// the ability to pass a context and additional request options. +// +// See ListUsers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListUsersPages iterates over the pages of a ListUsers operation, +// calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListUsers method for more information on how to use this operation. +// See ListUsers method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListUsers operation. +// pageNum := 0 +// err := client.ListUsersPages(params, +// func(page *identitystore.ListUsersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *IdentityStore) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error { + return c.ListUsersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListUsersPagesWithContext same as ListUsersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInput, fn func(*ListUsersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListUsersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListUsersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opUpdateGroup = "UpdateGroup" + +// UpdateGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateGroup for more information on using the UpdateGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateGroupRequest method. +// req, resp := client.UpdateGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/UpdateGroup +func (c *IdentityStore) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, output *UpdateGroupOutput) { + op := &request.Operation{ + Name: opUpdateGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateGroupInput{} + } + + output = &UpdateGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateGroup API operation for AWS SSO Identity Store. +// +// For the specified group in the specified identity store, updates the group +// metadata and attributes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation UpdateGroup for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ConflictException +// This request cannot be completed for one of the following reasons: +// +// - Performing the requested operation would violate an existing uniqueness +// claim in the identity store. Resolve the conflict before retrying this +// request. +// +// - The requested resource was being concurrently modified by another request. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// - ServiceQuotaExceededException +// The request would cause the number of users or groups in the identity store +// to exceed the maximum allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/UpdateGroup +func (c *IdentityStore) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) + return out, req.Send() +} + +// UpdateGroupWithContext is the same as UpdateGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) UpdateGroupWithContext(ctx aws.Context, input *UpdateGroupInput, opts ...request.Option) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUser = "UpdateUser" + +// UpdateUserRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateUser for more information on using the UpdateUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateUserRequest method. +// req, resp := client.UpdateUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/UpdateUser +func (c *IdentityStore) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput) { + op := &request.Operation{ + Name: opUpdateUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateUserInput{} + } + + output = &UpdateUserOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateUser API operation for AWS SSO Identity Store. +// +// For the specified user in the specified identity store, updates the user +// metadata and attributes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SSO Identity Store's +// API operation UpdateUser for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// Indicates that a requested resource is not found. +// +// - ThrottlingException +// Indicates that the principal has crossed the throttling limits of the API +// operations. +// +// - AccessDeniedException +// You do not have sufficient access to perform this action. +// +// - ConflictException +// This request cannot be completed for one of the following reasons: +// +// - Performing the requested operation would violate an existing uniqueness +// claim in the identity store. Resolve the conflict before retrying this +// request. +// +// - The requested resource was being concurrently modified by another request. +// +// - InternalServerException +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +// +// - ValidationException +// The request failed because it contains a syntax error. +// +// - ServiceQuotaExceededException +// The request would cause the number of users or groups in the identity store +// to exceed the maximum allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/UpdateUser +func (c *IdentityStore) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + return out, req.Send() +} + +// UpdateUserWithContext is the same as UpdateUser with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IdentityStore) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInput, opts ...request.Option) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` + + // The identifier for each request. This value is a globally unique ID that + // is generated by the identity store service for each sent request, and is + // then returned inside the exception if the request fails. + RequestId *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The address associated with the specified user. +type Address struct { + _ struct{} `type:"structure"` + + // The country of the address. + // + // Country is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + Country *string `min:"1" type:"string" sensitive:"true"` + + // A string containing a formatted version of the address for display. + // + // Formatted is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + Formatted *string `min:"1" type:"string" sensitive:"true"` + + // A string of the address locality. + // + // Locality is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + Locality *string `min:"1" type:"string" sensitive:"true"` + + // The postal code of the address. + // + // PostalCode is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + PostalCode *string `min:"1" type:"string" sensitive:"true"` + + // A boolean representing whether this is the primary address for the associated + // resource. + // + // Primary is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + Primary *bool `type:"boolean" sensitive:"true"` + + // The region of the address. + // + // Region is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + Region *string `min:"1" type:"string" sensitive:"true"` + + // The street of the address. + // + // StreetAddress is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + StreetAddress *string `min:"1" type:"string" sensitive:"true"` + + // A string representing the type of address. For example, "Home." + // + // Type is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + Type *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Address) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Address) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Address) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Address"} + if s.Country != nil && len(*s.Country) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Country", 1)) + } + if s.Formatted != nil && len(*s.Formatted) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Formatted", 1)) + } + if s.Locality != nil && len(*s.Locality) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Locality", 1)) + } + if s.PostalCode != nil && len(*s.PostalCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PostalCode", 1)) + } + if s.Region != nil && len(*s.Region) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Region", 1)) + } + if s.StreetAddress != nil && len(*s.StreetAddress) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StreetAddress", 1)) + } + if s.Type != nil && len(*s.Type) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Type", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCountry sets the Country field's value. +func (s *Address) SetCountry(v string) *Address { + s.Country = &v + return s +} + +// SetFormatted sets the Formatted field's value. +func (s *Address) SetFormatted(v string) *Address { + s.Formatted = &v + return s +} + +// SetLocality sets the Locality field's value. +func (s *Address) SetLocality(v string) *Address { + s.Locality = &v + return s +} + +// SetPostalCode sets the PostalCode field's value. +func (s *Address) SetPostalCode(v string) *Address { + s.PostalCode = &v + return s +} + +// SetPrimary sets the Primary field's value. +func (s *Address) SetPrimary(v bool) *Address { + s.Primary = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Address) SetRegion(v string) *Address { + s.Region = &v + return s +} + +// SetStreetAddress sets the StreetAddress field's value. +func (s *Address) SetStreetAddress(v string) *Address { + s.StreetAddress = &v + return s +} + +// SetType sets the Type field's value. +func (s *Address) SetType(v string) *Address { + s.Type = &v + return s +} + +// A unique identifier for the group value that is not the group's primary identifier. +// This value can be an identifier from an external identity provider (IdP) +// that is associated with the group or a unique attribute. For example, a unique +// GroupDisplayName. +type AlternateIdentifier struct { + _ struct{} `type:"structure"` + + // The identifier issued to this resource by an external identity provider. + ExternalId *ExternalId `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AlternateIdentifier) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AlternateIdentifier) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AlternateIdentifier) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AlternateIdentifier"} + if s.ExternalId != nil { + if err := s.ExternalId.Validate(); err != nil { + invalidParams.AddNested("ExternalId", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExternalId sets the ExternalId field's value. +func (s *AlternateIdentifier) SetExternalId(v *ExternalId) *AlternateIdentifier { + s.ExternalId = v + return s +} + +// An operation that applies to the requested group. This operation might add, +// replace, or remove an attribute. +type AttributeOperation struct { + _ struct{} `type:"structure"` + + // A string representation of the path to a given attribute or sub-attribute. + // Supports JMESPath. + // + // AttributePath is a required field + AttributePath *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AttributeOperation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AttributeOperation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttributeOperation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttributeOperation"} + if s.AttributePath == nil { + invalidParams.Add(request.NewErrParamRequired("AttributePath")) + } + if s.AttributePath != nil && len(*s.AttributePath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributePath", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributePath sets the AttributePath field's value. +func (s *AttributeOperation) SetAttributePath(v string) *AttributeOperation { + s.AttributePath = &v + return s +} + +// This request cannot be completed for one of the following reasons: +// +// - Performing the requested operation would violate an existing uniqueness +// claim in the identity store. Resolve the conflict before retrying this +// request. +// +// - The requested resource was being concurrently modified by another request. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` + + // This request cannot be completed for one of the following reasons: + // + // * Performing the requested operation would violate an existing uniqueness + // claim in the identity store. Resolve the conflict before retrying this + // request. + // + // * The requested resource was being concurrently modified by another request. + Reason *string `type:"string" enum:"ConflictExceptionReason"` + + // The identifier for each request. This value is a globally unique ID that + // is generated by the identity store service for each sent request, and is + // then returned inside the exception if the request fails. + RequestId *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CreateGroupInput struct { + _ struct{} `type:"structure"` + + // A string containing the description of the group. + // + // Description is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateGroupInput's + // String and GoString methods. + Description *string `min:"1" type:"string" sensitive:"true"` + + // A string containing the name of the group. This value is commonly displayed + // when the group is referenced. + // + // DisplayName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateGroupInput's + // String and GoString methods. + DisplayName *string `min:"1" type:"string" sensitive:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGroupInput"} + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.DisplayName != nil && len(*s.DisplayName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) + } + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateGroupInput) SetDescription(v string) *CreateGroupInput { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *CreateGroupInput) SetDisplayName(v string) *CreateGroupInput { + s.DisplayName = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *CreateGroupInput) SetIdentityStoreId(v string) *CreateGroupInput { + s.IdentityStoreId = &v + return s +} + +type CreateGroupMembershipInput struct { + _ struct{} `type:"structure"` + + // The identifier for a group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // An object that contains the identifier of a group member. Setting the UserID + // field to the specific identifier for a user indicates that the user is a + // member of the group. + // + // MemberId is a required field + MemberId *MemberId `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGroupMembershipInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGroupMembershipInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateGroupMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGroupMembershipInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.MemberId == nil { + invalidParams.Add(request.NewErrParamRequired("MemberId")) + } + if s.MemberId != nil { + if err := s.MemberId.Validate(); err != nil { + invalidParams.AddNested("MemberId", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupId sets the GroupId field's value. +func (s *CreateGroupMembershipInput) SetGroupId(v string) *CreateGroupMembershipInput { + s.GroupId = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *CreateGroupMembershipInput) SetIdentityStoreId(v string) *CreateGroupMembershipInput { + s.IdentityStoreId = &v + return s +} + +// SetMemberId sets the MemberId field's value. +func (s *CreateGroupMembershipInput) SetMemberId(v *MemberId) *CreateGroupMembershipInput { + s.MemberId = v + return s +} + +type CreateGroupMembershipOutput struct { + _ struct{} `type:"structure"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The identifier for a GroupMembership in the identity store. + // + // MembershipId is a required field + MembershipId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGroupMembershipOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGroupMembershipOutput) GoString() string { + return s.String() +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *CreateGroupMembershipOutput) SetIdentityStoreId(v string) *CreateGroupMembershipOutput { + s.IdentityStoreId = &v + return s +} + +// SetMembershipId sets the MembershipId field's value. +func (s *CreateGroupMembershipOutput) SetMembershipId(v string) *CreateGroupMembershipOutput { + s.MembershipId = &v + return s +} + +type CreateGroupOutput struct { + _ struct{} `type:"structure"` + + // The identifier of the newly created group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateGroupOutput) GoString() string { + return s.String() +} + +// SetGroupId sets the GroupId field's value. +func (s *CreateGroupOutput) SetGroupId(v string) *CreateGroupOutput { + s.GroupId = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *CreateGroupOutput) SetIdentityStoreId(v string) *CreateGroupOutput { + s.IdentityStoreId = &v + return s +} + +type CreateUserInput struct { + _ struct{} `type:"structure"` + + // A list of Address objects containing addresses associated with the user. + Addresses []*Address `min:"1" type:"list"` + + // A string containing the user's name. This value is typically formatted for + // display when the user is referenced. For example, "John Doe." + // + // DisplayName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + DisplayName *string `min:"1" type:"string" sensitive:"true"` + + // A list of Email objects containing email addresses associated with the user. + Emails []*Email `min:"1" type:"list"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // A string containing the user's geographical region or location. + // + // Locale is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + Locale *string `min:"1" type:"string" sensitive:"true"` + + // An object containing the user's name. + Name *Name `type:"structure"` + + // A string containing an alternate name for the user. + // + // NickName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + NickName *string `min:"1" type:"string" sensitive:"true"` + + // A list of PhoneNumber objects containing phone numbers associated with the + // user. + PhoneNumbers []*PhoneNumber `min:"1" type:"list"` + + // A string containing the preferred language of the user. For example, "American + // English" or "en-us." + // + // PreferredLanguage is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + PreferredLanguage *string `min:"1" type:"string" sensitive:"true"` + + // A string containing a URL that may be associated with the user. + // + // ProfileUrl is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + ProfileUrl *string `min:"1" type:"string" sensitive:"true"` + + // A string containing the user's time zone. + // + // Timezone is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + Timezone *string `min:"1" type:"string" sensitive:"true"` + + // A string containing the user's title. Possible values are left unspecified + // given that they depend on each customer's specific needs. + // + // Title is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + Title *string `min:"1" type:"string" sensitive:"true"` + + // A unique string used to identify the user. The length limit is 128 characters. + // This value can consist of letters, accented characters, symbols, numbers, + // and punctuation. The characters <>;:% are excluded. This value is specified + // at the time the user is created and stored as an attribute of the user object + // in the identity store. + // + // UserName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + UserName *string `min:"1" type:"string" sensitive:"true"` + + // A string indicating the user's type. Possible values depend on each customer's + // specific needs, so they are left unspecified. + // + // UserType is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + UserType *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUserInput"} + if s.Addresses != nil && len(s.Addresses) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Addresses", 1)) + } + if s.DisplayName != nil && len(*s.DisplayName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) + } + if s.Emails != nil && len(s.Emails) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Emails", 1)) + } + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.Locale != nil && len(*s.Locale) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Locale", 1)) + } + if s.NickName != nil && len(*s.NickName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NickName", 1)) + } + if s.PhoneNumbers != nil && len(s.PhoneNumbers) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumbers", 1)) + } + if s.PreferredLanguage != nil && len(*s.PreferredLanguage) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PreferredLanguage", 1)) + } + if s.ProfileUrl != nil && len(*s.ProfileUrl) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProfileUrl", 1)) + } + if s.Timezone != nil && len(*s.Timezone) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Timezone", 1)) + } + if s.Title != nil && len(*s.Title) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Title", 1)) + } + if s.UserName != nil && len(*s.UserName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) + } + if s.UserType != nil && len(*s.UserType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserType", 1)) + } + if s.Addresses != nil { + for i, v := range s.Addresses { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Addresses", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Emails != nil { + for i, v := range s.Emails { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Emails", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Name != nil { + if err := s.Name.Validate(); err != nil { + invalidParams.AddNested("Name", err.(request.ErrInvalidParams)) + } + } + if s.PhoneNumbers != nil { + for i, v := range s.PhoneNumbers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PhoneNumbers", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddresses sets the Addresses field's value. +func (s *CreateUserInput) SetAddresses(v []*Address) *CreateUserInput { + s.Addresses = v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *CreateUserInput) SetDisplayName(v string) *CreateUserInput { + s.DisplayName = &v + return s +} + +// SetEmails sets the Emails field's value. +func (s *CreateUserInput) SetEmails(v []*Email) *CreateUserInput { + s.Emails = v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *CreateUserInput) SetIdentityStoreId(v string) *CreateUserInput { + s.IdentityStoreId = &v + return s +} + +// SetLocale sets the Locale field's value. +func (s *CreateUserInput) SetLocale(v string) *CreateUserInput { + s.Locale = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateUserInput) SetName(v *Name) *CreateUserInput { + s.Name = v + return s +} + +// SetNickName sets the NickName field's value. +func (s *CreateUserInput) SetNickName(v string) *CreateUserInput { + s.NickName = &v + return s +} + +// SetPhoneNumbers sets the PhoneNumbers field's value. +func (s *CreateUserInput) SetPhoneNumbers(v []*PhoneNumber) *CreateUserInput { + s.PhoneNumbers = v + return s +} + +// SetPreferredLanguage sets the PreferredLanguage field's value. +func (s *CreateUserInput) SetPreferredLanguage(v string) *CreateUserInput { + s.PreferredLanguage = &v + return s +} + +// SetProfileUrl sets the ProfileUrl field's value. +func (s *CreateUserInput) SetProfileUrl(v string) *CreateUserInput { + s.ProfileUrl = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *CreateUserInput) SetTimezone(v string) *CreateUserInput { + s.Timezone = &v + return s +} + +// SetTitle sets the Title field's value. +func (s *CreateUserInput) SetTitle(v string) *CreateUserInput { + s.Title = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *CreateUserInput) SetUserName(v string) *CreateUserInput { + s.UserName = &v + return s +} + +// SetUserType sets the UserType field's value. +func (s *CreateUserInput) SetUserType(v string) *CreateUserInput { + s.UserType = &v + return s +} + +type CreateUserOutput struct { + _ struct{} `type:"structure"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The identifier of the newly created user in the identity store. + // + // UserId is a required field + UserId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateUserOutput) GoString() string { + return s.String() +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *CreateUserOutput) SetIdentityStoreId(v string) *CreateUserOutput { + s.IdentityStoreId = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *CreateUserOutput) SetUserId(v string) *CreateUserOutput { + s.UserId = &v + return s +} + +type DeleteGroupInput struct { + _ struct{} `type:"structure"` + + // The identifier for a group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGroupInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupId sets the GroupId field's value. +func (s *DeleteGroupInput) SetGroupId(v string) *DeleteGroupInput { + s.GroupId = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *DeleteGroupInput) SetIdentityStoreId(v string) *DeleteGroupInput { + s.IdentityStoreId = &v + return s +} + +type DeleteGroupMembershipInput struct { + _ struct{} `type:"structure"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The identifier for a GroupMembership in the identity store. + // + // MembershipId is a required field + MembershipId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteGroupMembershipInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteGroupMembershipInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGroupMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGroupMembershipInput"} + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.MembershipId == nil { + invalidParams.Add(request.NewErrParamRequired("MembershipId")) + } + if s.MembershipId != nil && len(*s.MembershipId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MembershipId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *DeleteGroupMembershipInput) SetIdentityStoreId(v string) *DeleteGroupMembershipInput { + s.IdentityStoreId = &v + return s +} + +// SetMembershipId sets the MembershipId field's value. +func (s *DeleteGroupMembershipInput) SetMembershipId(v string) *DeleteGroupMembershipInput { + s.MembershipId = &v + return s +} + +type DeleteGroupMembershipOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteGroupMembershipOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteGroupMembershipOutput) GoString() string { + return s.String() +} + +type DeleteGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteGroupOutput) GoString() string { + return s.String() +} + +type DeleteUserInput struct { + _ struct{} `type:"structure"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The identifier for a user in the identity store. + // + // UserId is a required field + UserId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *DeleteUserInput) SetIdentityStoreId(v string) *DeleteUserInput { + s.IdentityStoreId = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *DeleteUserInput) SetUserId(v string) *DeleteUserInput { + s.UserId = &v + return s +} + +type DeleteUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteUserOutput) GoString() string { + return s.String() +} + +type DescribeGroupInput struct { + _ struct{} `type:"structure"` + + // The identifier for a group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` + + // The globally unique identifier for the identity store, such as d-1234567890. + // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated + // string that contains numbers and lower case letters. This value is generated + // at the time that a new identity store is created. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGroupInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupId sets the GroupId field's value. +func (s *DescribeGroupInput) SetGroupId(v string) *DescribeGroupInput { + s.GroupId = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *DescribeGroupInput) SetIdentityStoreId(v string) *DescribeGroupInput { + s.IdentityStoreId = &v + return s +} + +type DescribeGroupMembershipInput struct { + _ struct{} `type:"structure"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The identifier for a GroupMembership in the identity store. + // + // MembershipId is a required field + MembershipId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGroupMembershipInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGroupMembershipInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGroupMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGroupMembershipInput"} + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.MembershipId == nil { + invalidParams.Add(request.NewErrParamRequired("MembershipId")) + } + if s.MembershipId != nil && len(*s.MembershipId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MembershipId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *DescribeGroupMembershipInput) SetIdentityStoreId(v string) *DescribeGroupMembershipInput { + s.IdentityStoreId = &v + return s +} + +// SetMembershipId sets the MembershipId field's value. +func (s *DescribeGroupMembershipInput) SetMembershipId(v string) *DescribeGroupMembershipInput { + s.MembershipId = &v + return s +} + +type DescribeGroupMembershipOutput struct { + _ struct{} `type:"structure"` + + // The identifier for a group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // An object containing the identifier of a group member. + // + // MemberId is a required field + MemberId *MemberId `type:"structure" required:"true"` + + // The identifier for a GroupMembership in the identity store. + // + // MembershipId is a required field + MembershipId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGroupMembershipOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGroupMembershipOutput) GoString() string { + return s.String() +} + +// SetGroupId sets the GroupId field's value. +func (s *DescribeGroupMembershipOutput) SetGroupId(v string) *DescribeGroupMembershipOutput { + s.GroupId = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *DescribeGroupMembershipOutput) SetIdentityStoreId(v string) *DescribeGroupMembershipOutput { + s.IdentityStoreId = &v + return s +} + +// SetMemberId sets the MemberId field's value. +func (s *DescribeGroupMembershipOutput) SetMemberId(v *MemberId) *DescribeGroupMembershipOutput { + s.MemberId = v + return s +} + +// SetMembershipId sets the MembershipId field's value. +func (s *DescribeGroupMembershipOutput) SetMembershipId(v string) *DescribeGroupMembershipOutput { + s.MembershipId = &v + return s +} + +type DescribeGroupOutput struct { + _ struct{} `type:"structure"` + + // A string containing a description of the group. + // + // Description is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeGroupOutput's + // String and GoString methods. + Description *string `min:"1" type:"string" sensitive:"true"` + + // The group’s display name value. The length limit is 1,024 characters. This + // value can consist of letters, accented characters, symbols, numbers, punctuation, + // tab, new line, carriage return, space, and nonbreaking space in this attribute. + // The characters <>;:% are excluded. This value is specified at the time that + // the group is created and stored as an attribute of the group object in the + // identity store. + // + // DisplayName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeGroupOutput's + // String and GoString methods. + DisplayName *string `min:"1" type:"string" sensitive:"true"` + + // A list of ExternalId objects that contains the identifiers issued to this + // resource by an external identity provider. + ExternalIds []*ExternalId `min:"1" type:"list"` + + // The identifier for a group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGroupOutput) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *DescribeGroupOutput) SetDescription(v string) *DescribeGroupOutput { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *DescribeGroupOutput) SetDisplayName(v string) *DescribeGroupOutput { + s.DisplayName = &v + return s +} + +// SetExternalIds sets the ExternalIds field's value. +func (s *DescribeGroupOutput) SetExternalIds(v []*ExternalId) *DescribeGroupOutput { + s.ExternalIds = v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *DescribeGroupOutput) SetGroupId(v string) *DescribeGroupOutput { + s.GroupId = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *DescribeGroupOutput) SetIdentityStoreId(v string) *DescribeGroupOutput { + s.IdentityStoreId = &v + return s +} + +type DescribeUserInput struct { + _ struct{} `type:"structure"` + + // The globally unique identifier for the identity store, such as d-1234567890. + // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated + // string that contains numbers and lower case letters. This value is generated + // at the time that a new identity store is created. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The identifier for a user in the identity store. + // + // UserId is a required field + UserId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *DescribeUserInput) SetIdentityStoreId(v string) *DescribeUserInput { + s.IdentityStoreId = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *DescribeUserInput) SetUserId(v string) *DescribeUserInput { + s.UserId = &v + return s +} + +type DescribeUserOutput struct { + _ struct{} `type:"structure"` + + // The user's physical address. + Addresses []*Address `min:"1" type:"list"` + + // The user's name value for display. + // + // DisplayName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeUserOutput's + // String and GoString methods. + DisplayName *string `min:"1" type:"string" sensitive:"true"` + + // The user's email value. + Emails []*Email `min:"1" type:"list"` + + // A list of ExternalId objects that contains the identifiers issued to this + // resource by an external identity provider. + ExternalIds []*ExternalId `min:"1" type:"list"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // A string containing the user's geographical region or location. + // + // Locale is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeUserOutput's + // String and GoString methods. + Locale *string `min:"1" type:"string" sensitive:"true"` + + // The name of the user. + Name *Name `type:"structure"` + + // An alternative descriptive name for the user. + // + // NickName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeUserOutput's + // String and GoString methods. + NickName *string `min:"1" type:"string" sensitive:"true"` + + // A list of PhoneNumber objects associated with a user. + PhoneNumbers []*PhoneNumber `min:"1" type:"list"` + + // The preferred language of the user. + // + // PreferredLanguage is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeUserOutput's + // String and GoString methods. + PreferredLanguage *string `min:"1" type:"string" sensitive:"true"` + + // A URL link for the user's profile. + // + // ProfileUrl is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeUserOutput's + // String and GoString methods. + ProfileUrl *string `min:"1" type:"string" sensitive:"true"` + + // The time zone for a user. + // + // Timezone is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeUserOutput's + // String and GoString methods. + Timezone *string `min:"1" type:"string" sensitive:"true"` + + // A string containing the user's title. + // + // Title is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeUserOutput's + // String and GoString methods. + Title *string `min:"1" type:"string" sensitive:"true"` + + // The identifier for a user in the identity store. + // + // UserId is a required field + UserId *string `min:"1" type:"string" required:"true"` + + // The user’s username value. The length limit is 128 characters. This value + // can consist of letters, accented characters, symbols, numbers, and punctuation. + // The characters <>;:% are excluded. This value is specified at the time the + // user is created and stored as an attribute of the user object in the identity + // store. + // + // UserName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeUserOutput's + // String and GoString methods. + UserName *string `min:"1" type:"string" sensitive:"true"` + + // A string indicating the user's type. + // + // UserType is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DescribeUserOutput's + // String and GoString methods. + UserType *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeUserOutput) GoString() string { + return s.String() +} + +// SetAddresses sets the Addresses field's value. +func (s *DescribeUserOutput) SetAddresses(v []*Address) *DescribeUserOutput { + s.Addresses = v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *DescribeUserOutput) SetDisplayName(v string) *DescribeUserOutput { + s.DisplayName = &v + return s +} + +// SetEmails sets the Emails field's value. +func (s *DescribeUserOutput) SetEmails(v []*Email) *DescribeUserOutput { + s.Emails = v + return s +} + +// SetExternalIds sets the ExternalIds field's value. +func (s *DescribeUserOutput) SetExternalIds(v []*ExternalId) *DescribeUserOutput { + s.ExternalIds = v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *DescribeUserOutput) SetIdentityStoreId(v string) *DescribeUserOutput { + s.IdentityStoreId = &v + return s +} + +// SetLocale sets the Locale field's value. +func (s *DescribeUserOutput) SetLocale(v string) *DescribeUserOutput { + s.Locale = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeUserOutput) SetName(v *Name) *DescribeUserOutput { + s.Name = v + return s +} + +// SetNickName sets the NickName field's value. +func (s *DescribeUserOutput) SetNickName(v string) *DescribeUserOutput { + s.NickName = &v + return s +} + +// SetPhoneNumbers sets the PhoneNumbers field's value. +func (s *DescribeUserOutput) SetPhoneNumbers(v []*PhoneNumber) *DescribeUserOutput { + s.PhoneNumbers = v + return s +} + +// SetPreferredLanguage sets the PreferredLanguage field's value. +func (s *DescribeUserOutput) SetPreferredLanguage(v string) *DescribeUserOutput { + s.PreferredLanguage = &v + return s +} + +// SetProfileUrl sets the ProfileUrl field's value. +func (s *DescribeUserOutput) SetProfileUrl(v string) *DescribeUserOutput { + s.ProfileUrl = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *DescribeUserOutput) SetTimezone(v string) *DescribeUserOutput { + s.Timezone = &v + return s +} + +// SetTitle sets the Title field's value. +func (s *DescribeUserOutput) SetTitle(v string) *DescribeUserOutput { + s.Title = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *DescribeUserOutput) SetUserId(v string) *DescribeUserOutput { + s.UserId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DescribeUserOutput) SetUserName(v string) *DescribeUserOutput { + s.UserName = &v + return s +} + +// SetUserType sets the UserType field's value. +func (s *DescribeUserOutput) SetUserType(v string) *DescribeUserOutput { + s.UserType = &v + return s +} + +// The email address associated with the user. +type Email struct { + _ struct{} `type:"structure"` + + // A boolean representing whether this is the primary email for the associated + // resource. + // + // Primary is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Email's + // String and GoString methods. + Primary *bool `type:"boolean" sensitive:"true"` + + // A string representing the type of address. For example, "Work." + // + // Type is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Email's + // String and GoString methods. + Type *string `min:"1" type:"string" sensitive:"true"` + + // A string containing an email address. For example, "johndoe@amazon.com." + // + // Value is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Email's + // String and GoString methods. + Value *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Email) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Email) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Email) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Email"} + if s.Type != nil && len(*s.Type) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Type", 1)) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPrimary sets the Primary field's value. +func (s *Email) SetPrimary(v bool) *Email { + s.Primary = &v + return s +} + +// SetType sets the Type field's value. +func (s *Email) SetType(v string) *Email { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Email) SetValue(v string) *Email { + s.Value = &v + return s +} + +// The identifier issued to this resource by an external identity provider. +type ExternalId struct { + _ struct{} `type:"structure"` + + // The identifier issued to this resource by an external identity provider. + // + // Id is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ExternalId's + // String and GoString methods. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The issuer for an external identifier. + // + // Issuer is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ExternalId's + // String and GoString methods. + // + // Issuer is a required field + Issuer *string `min:"1" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExternalId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExternalId) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExternalId) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExternalId"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.Issuer == nil { + invalidParams.Add(request.NewErrParamRequired("Issuer")) + } + if s.Issuer != nil && len(*s.Issuer) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Issuer", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *ExternalId) SetId(v string) *ExternalId { + s.Id = &v + return s +} + +// SetIssuer sets the Issuer field's value. +func (s *ExternalId) SetIssuer(v string) *ExternalId { + s.Issuer = &v + return s +} + +// A query filter used by ListUsers and ListGroups. This filter object provides +// the attribute name and attribute value to search users or groups. +type Filter struct { + _ struct{} `type:"structure"` + + // The attribute path that is used to specify which attribute name to search. + // Length limit is 255 characters. For example, UserName is a valid attribute + // path for the ListUsers API, and DisplayName is a valid attribute path for + // the ListGroups API. + // + // AttributePath is a required field + AttributePath *string `min:"1" type:"string" required:"true"` + + // Represents the data for an attribute. Each attribute value is described as + // a name-value pair. + // + // AttributeValue is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Filter's + // String and GoString methods. + // + // AttributeValue is a required field + AttributeValue *string `min:"1" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Filter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Filter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Filter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Filter"} + if s.AttributePath == nil { + invalidParams.Add(request.NewErrParamRequired("AttributePath")) + } + if s.AttributePath != nil && len(*s.AttributePath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributePath", 1)) + } + if s.AttributeValue == nil { + invalidParams.Add(request.NewErrParamRequired("AttributeValue")) + } + if s.AttributeValue != nil && len(*s.AttributeValue) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeValue", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributePath sets the AttributePath field's value. +func (s *Filter) SetAttributePath(v string) *Filter { + s.AttributePath = &v + return s +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *Filter) SetAttributeValue(v string) *Filter { + s.AttributeValue = &v + return s +} + +type GetGroupIdInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the group value that is not the group's primary identifier. + // This value can be an identifier from an external identity provider (IdP) + // that is associated with the group or a unique attribute. For example, a unique + // GroupDisplayName. + // + // AlternateIdentifier is a required field + AlternateIdentifier *AlternateIdentifier `type:"structure" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGroupIdInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGroupIdInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetGroupIdInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetGroupIdInput"} + if s.AlternateIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("AlternateIdentifier")) + } + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.AlternateIdentifier != nil { + if err := s.AlternateIdentifier.Validate(); err != nil { + invalidParams.AddNested("AlternateIdentifier", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlternateIdentifier sets the AlternateIdentifier field's value. +func (s *GetGroupIdInput) SetAlternateIdentifier(v *AlternateIdentifier) *GetGroupIdInput { + s.AlternateIdentifier = v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *GetGroupIdInput) SetIdentityStoreId(v string) *GetGroupIdInput { + s.IdentityStoreId = &v + return s +} + +type GetGroupIdOutput struct { + _ struct{} `type:"structure"` + + // The identifier for a group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGroupIdOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGroupIdOutput) GoString() string { + return s.String() +} + +// SetGroupId sets the GroupId field's value. +func (s *GetGroupIdOutput) SetGroupId(v string) *GetGroupIdOutput { + s.GroupId = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *GetGroupIdOutput) SetIdentityStoreId(v string) *GetGroupIdOutput { + s.IdentityStoreId = &v + return s +} + +type GetGroupMembershipIdInput struct { + _ struct{} `type:"structure"` + + // The identifier for a group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // An object that contains the identifier of a group member. Setting the UserID + // field to the specific identifier for a user indicates that the user is a + // member of the group. + // + // MemberId is a required field + MemberId *MemberId `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGroupMembershipIdInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGroupMembershipIdInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetGroupMembershipIdInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetGroupMembershipIdInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.MemberId == nil { + invalidParams.Add(request.NewErrParamRequired("MemberId")) + } + if s.MemberId != nil { + if err := s.MemberId.Validate(); err != nil { + invalidParams.AddNested("MemberId", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupId sets the GroupId field's value. +func (s *GetGroupMembershipIdInput) SetGroupId(v string) *GetGroupMembershipIdInput { + s.GroupId = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *GetGroupMembershipIdInput) SetIdentityStoreId(v string) *GetGroupMembershipIdInput { + s.IdentityStoreId = &v + return s +} + +// SetMemberId sets the MemberId field's value. +func (s *GetGroupMembershipIdInput) SetMemberId(v *MemberId) *GetGroupMembershipIdInput { + s.MemberId = v + return s +} + +type GetGroupMembershipIdOutput struct { + _ struct{} `type:"structure"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The identifier for a GroupMembership in the identity store. + // + // MembershipId is a required field + MembershipId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGroupMembershipIdOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGroupMembershipIdOutput) GoString() string { + return s.String() +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *GetGroupMembershipIdOutput) SetIdentityStoreId(v string) *GetGroupMembershipIdOutput { + s.IdentityStoreId = &v + return s +} + +// SetMembershipId sets the MembershipId field's value. +func (s *GetGroupMembershipIdOutput) SetMembershipId(v string) *GetGroupMembershipIdOutput { + s.MembershipId = &v + return s +} + +type GetUserIdInput struct { + _ struct{} `type:"structure"` + + // Any unique attribute associated with a user that is not the UserId. + // + // AlternateIdentifier is a required field + AlternateIdentifier *AlternateIdentifier `type:"structure" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetUserIdInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetUserIdInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetUserIdInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetUserIdInput"} + if s.AlternateIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("AlternateIdentifier")) + } + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.AlternateIdentifier != nil { + if err := s.AlternateIdentifier.Validate(); err != nil { + invalidParams.AddNested("AlternateIdentifier", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlternateIdentifier sets the AlternateIdentifier field's value. +func (s *GetUserIdInput) SetAlternateIdentifier(v *AlternateIdentifier) *GetUserIdInput { + s.AlternateIdentifier = v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *GetUserIdInput) SetIdentityStoreId(v string) *GetUserIdInput { + s.IdentityStoreId = &v + return s +} + +type GetUserIdOutput struct { + _ struct{} `type:"structure"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The identifier for a user in the identity store. + // + // UserId is a required field + UserId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetUserIdOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetUserIdOutput) GoString() string { + return s.String() +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *GetUserIdOutput) SetIdentityStoreId(v string) *GetUserIdOutput { + s.IdentityStoreId = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *GetUserIdOutput) SetUserId(v string) *GetUserIdOutput { + s.UserId = &v + return s +} + +// A group object that contains a specified group’s metadata and attributes. +type Group struct { + _ struct{} `type:"structure"` + + // A string containing a description of the specified group. + // + // Description is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Group's + // String and GoString methods. + Description *string `min:"1" type:"string" sensitive:"true"` + + // The group’s display name value. The length limit is 1,024 characters. This + // value can consist of letters, accented characters, symbols, numbers, punctuation, + // tab, new line, carriage return, space, and nonbreaking space in this attribute. + // The characters <>;:% are excluded. This value is specified at the time the + // group is created and stored as an attribute of the group object in the identity + // store. + // + // DisplayName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Group's + // String and GoString methods. + DisplayName *string `min:"1" type:"string" sensitive:"true"` + + // A list of ExternalId objects that contains the identifiers issued to this + // resource by an external identity provider. + ExternalIds []*ExternalId `min:"1" type:"list"` + + // The identifier for a group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Group) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Group) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *Group) SetDescription(v string) *Group { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *Group) SetDisplayName(v string) *Group { + s.DisplayName = &v + return s +} + +// SetExternalIds sets the ExternalIds field's value. +func (s *Group) SetExternalIds(v []*ExternalId) *Group { + s.ExternalIds = v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *Group) SetGroupId(v string) *Group { + s.GroupId = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *Group) SetIdentityStoreId(v string) *Group { + s.IdentityStoreId = &v + return s +} + +// Contains the identifiers for a group, a group member, and a GroupMembership +// object in the identity store. +type GroupMembership struct { + _ struct{} `type:"structure"` + + // The identifier for a group in the identity store. + GroupId *string `min:"1" type:"string"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // An object that contains the identifier of a group member. Setting the UserID + // field to the specific identifier for a user indicates that the user is a + // member of the group. + MemberId *MemberId `type:"structure"` + + // The identifier for a GroupMembership object in the identity store. + MembershipId *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GroupMembership) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GroupMembership) GoString() string { + return s.String() +} + +// SetGroupId sets the GroupId field's value. +func (s *GroupMembership) SetGroupId(v string) *GroupMembership { + s.GroupId = &v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *GroupMembership) SetIdentityStoreId(v string) *GroupMembership { + s.IdentityStoreId = &v + return s +} + +// SetMemberId sets the MemberId field's value. +func (s *GroupMembership) SetMemberId(v *MemberId) *GroupMembership { + s.MemberId = v + return s +} + +// SetMembershipId sets the MembershipId field's value. +func (s *GroupMembership) SetMembershipId(v string) *GroupMembership { + s.MembershipId = &v + return s +} + +// Indicates whether a resource is a member of a group in the identity store. +type GroupMembershipExistenceResult struct { + _ struct{} `type:"structure"` + + // The identifier for a group in the identity store. + GroupId *string `min:"1" type:"string"` + + // An object that contains the identifier of a group member. Setting the UserID + // field to the specific identifier for a user indicates that the user is a + // member of the group. + MemberId *MemberId `type:"structure"` + + // Indicates whether a membership relation exists or not. + // + // MembershipExists is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by GroupMembershipExistenceResult's + // String and GoString methods. + MembershipExists *bool `type:"boolean" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GroupMembershipExistenceResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GroupMembershipExistenceResult) GoString() string { + return s.String() +} + +// SetGroupId sets the GroupId field's value. +func (s *GroupMembershipExistenceResult) SetGroupId(v string) *GroupMembershipExistenceResult { + s.GroupId = &v + return s +} + +// SetMemberId sets the MemberId field's value. +func (s *GroupMembershipExistenceResult) SetMemberId(v *MemberId) *GroupMembershipExistenceResult { + s.MemberId = v + return s +} + +// SetMembershipExists sets the MembershipExists field's value. +func (s *GroupMembershipExistenceResult) SetMembershipExists(v bool) *GroupMembershipExistenceResult { + s.MembershipExists = &v + return s +} + +// The request processing has failed because of an unknown error, exception +// or failure with an internal server. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` + + // The identifier for each request. This value is a globally unique ID that + // is generated by the identity store service for each sent request, and is + // then returned inside the exception if the request fails. + RequestId *string `min:"1" type:"string"` + + // The number of seconds that you would like to wait before retrying the next + // request. + RetryAfterSeconds *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. // -// Note: This operation can generate multiple requests to a service. +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +type IsMemberInGroupsInput struct { + _ struct{} `type:"structure"` + + // A list of identifiers for groups in the identity store. + // + // GroupIds is a required field + GroupIds []*string `min:"1" type:"list" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // An object containing the identifier of a group member. + // + // MemberId is a required field + MemberId *MemberId `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s IsMemberInGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s IsMemberInGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *IsMemberInGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IsMemberInGroupsInput"} + if s.GroupIds == nil { + invalidParams.Add(request.NewErrParamRequired("GroupIds")) + } + if s.GroupIds != nil && len(s.GroupIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupIds", 1)) + } + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.MemberId == nil { + invalidParams.Add(request.NewErrParamRequired("MemberId")) + } + if s.MemberId != nil { + if err := s.MemberId.Validate(); err != nil { + invalidParams.AddNested("MemberId", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupIds sets the GroupIds field's value. +func (s *IsMemberInGroupsInput) SetGroupIds(v []*string) *IsMemberInGroupsInput { + s.GroupIds = v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *IsMemberInGroupsInput) SetIdentityStoreId(v string) *IsMemberInGroupsInput { + s.IdentityStoreId = &v + return s +} + +// SetMemberId sets the MemberId field's value. +func (s *IsMemberInGroupsInput) SetMemberId(v *MemberId) *IsMemberInGroupsInput { + s.MemberId = v + return s +} + +type IsMemberInGroupsOutput struct { + _ struct{} `type:"structure"` + + // An object containing results of batch IsMemberInGroups call. + // + // Results is a required field + Results []*GroupMembershipExistenceResult `type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s IsMemberInGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s IsMemberInGroupsOutput) GoString() string { + return s.String() +} + +// SetResults sets the Results field's value. +func (s *IsMemberInGroupsOutput) SetResults(v []*GroupMembershipExistenceResult) *IsMemberInGroupsOutput { + s.Results = v + return s +} + +type ListGroupMembershipsForMemberInput struct { + _ struct{} `type:"structure"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The maximum number of results to be returned per request. This parameter + // is used in the ListUsers and ListGroups requests to specify how many results + // to return in one page. The length limit is 50 characters. + MaxResults *int64 `min:"1" type:"integer"` + + // An object that contains the identifier of a group member. Setting the UserID + // field to the specific identifier for a user indicates that the user is a + // member of the group. + // + // MemberId is a required field + MemberId *MemberId `type:"structure" required:"true"` + + // The pagination token used for the ListUsers, ListGroups and ListGroupMemberships + // API operations. This value is generated by the identity store service. It + // is returned in the API response if the total results are more than the size + // of one page. This token is also returned when it is used in the API request + // to search for the next page. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListGroupMembershipsForMemberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListGroupMembershipsForMemberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListGroupMembershipsForMemberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListGroupMembershipsForMemberInput"} + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.MemberId == nil { + invalidParams.Add(request.NewErrParamRequired("MemberId")) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.MemberId != nil { + if err := s.MemberId.Validate(); err != nil { + invalidParams.AddNested("MemberId", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *ListGroupMembershipsForMemberInput) SetIdentityStoreId(v string) *ListGroupMembershipsForMemberInput { + s.IdentityStoreId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListGroupMembershipsForMemberInput) SetMaxResults(v int64) *ListGroupMembershipsForMemberInput { + s.MaxResults = &v + return s +} + +// SetMemberId sets the MemberId field's value. +func (s *ListGroupMembershipsForMemberInput) SetMemberId(v *MemberId) *ListGroupMembershipsForMemberInput { + s.MemberId = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGroupMembershipsForMemberInput) SetNextToken(v string) *ListGroupMembershipsForMemberInput { + s.NextToken = &v + return s +} + +type ListGroupMembershipsForMemberOutput struct { + _ struct{} `type:"structure"` + + // A list of GroupMembership objects in the group for a specified member. + // + // GroupMemberships is a required field + GroupMemberships []*GroupMembership `type:"list" required:"true"` + + // The pagination token used for the ListUsers, ListGroups and ListGroupMemberships + // API operations. This value is generated by the identity store service. It + // is returned in the API response if the total results are more than the size + // of one page. This token is also returned when it is used in the API request + // to search for the next page. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListGroupMembershipsForMemberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListGroupMembershipsForMemberOutput) GoString() string { + return s.String() +} + +// SetGroupMemberships sets the GroupMemberships field's value. +func (s *ListGroupMembershipsForMemberOutput) SetGroupMemberships(v []*GroupMembership) *ListGroupMembershipsForMemberOutput { + s.GroupMemberships = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGroupMembershipsForMemberOutput) SetNextToken(v string) *ListGroupMembershipsForMemberOutput { + s.NextToken = &v + return s +} + +type ListGroupMembershipsInput struct { + _ struct{} `type:"structure"` + + // The identifier for a group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` + + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The maximum number of results to be returned per request. This parameter + // is used in the ListUsers and ListGroups requests to specify how many results + // to return in one page. The length limit is 50 characters. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token used for the ListUsers, ListGroups and ListGroupMemberships + // API operations. This value is generated by the identity store service. It + // is returned in the API response if the total results are more than the size + // of one page. This token is also returned when it is used in the API request + // to search for the next page. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation. // -// // Example iterating over at most 3 pages of a ListUsers operation. -// pageNum := 0 -// err := client.ListUsersPages(params, -// func(page *identitystore.ListUsersOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *IdentityStore) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error { - return c.ListUsersPagesWithContext(aws.BackgroundContext(), input, fn) +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListGroupMembershipsInput) String() string { + return awsutil.Prettify(s) } -// ListUsersPagesWithContext same as ListUsersPages except -// it takes a Context and allows setting request options on the pages. +// GoString returns the string representation. // -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *IdentityStore) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInput, fn func(*ListUsersOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListUsersInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListUsersRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListGroupMembershipsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListGroupMembershipsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListGroupMembershipsInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } - for p.Next() { - if !fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) { - break - } + if invalidParams.Len() > 0 { + return invalidParams } + return nil +} - return p.Err() +// SetGroupId sets the GroupId field's value. +func (s *ListGroupMembershipsInput) SetGroupId(v string) *ListGroupMembershipsInput { + s.GroupId = &v + return s } -// You do not have sufficient access to perform this action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *ListGroupMembershipsInput) SetIdentityStoreId(v string) *ListGroupMembershipsInput { + s.IdentityStoreId = &v + return s +} - Message_ *string `locationName:"Message" min:"1" type:"string"` +// SetMaxResults sets the MaxResults field's value. +func (s *ListGroupMembershipsInput) SetMaxResults(v int64) *ListGroupMembershipsInput { + s.MaxResults = &v + return s +} - // The identifier for each request. This value is a globally unique ID that - // is generated by the identity store service for each sent request, and is - // then returned inside the exception if the request fails. - RequestId *string `type:"string"` +// SetNextToken sets the NextToken field's value. +func (s *ListGroupMembershipsInput) SetNextToken(v string) *ListGroupMembershipsInput { + s.NextToken = &v + return s +} + +type ListGroupMembershipsOutput struct { + _ struct{} `type:"structure"` + + // A list of GroupMembership objects in the group. + // + // GroupMemberships is a required field + GroupMemberships []*GroupMembership `type:"list" required:"true"` + + // The pagination token used for the ListUsers, ListGroups and ListGroupMemberships + // API operations. This value is generated by the identity store service. It + // is returned in the API response if the total results are more than the size + // of one page. This token is also returned when it is used in the API request + // to search for the next page. + NextToken *string `min:"1" type:"string"` } // String returns the string representation. @@ -521,7 +5194,7 @@ type AccessDeniedException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AccessDeniedException) String() string { +func (s ListGroupMembershipsOutput) String() string { return awsutil.Prettify(s) } @@ -530,63 +5203,198 @@ func (s AccessDeniedException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AccessDeniedException) GoString() string { +func (s ListGroupMembershipsOutput) GoString() string { return s.String() } -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, - } +// SetGroupMemberships sets the GroupMemberships field's value. +func (s *ListGroupMembershipsOutput) SetGroupMemberships(v []*GroupMembership) *ListGroupMembershipsOutput { + s.GroupMemberships = v + return s } -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" +// SetNextToken sets the NextToken field's value. +func (s *ListGroupMembershipsOutput) SetNextToken(v string) *ListGroupMembershipsOutput { + s.NextToken = &v + return s } -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +type ListGroupsInput struct { + _ struct{} `type:"structure"` + + // A list of Filter objects that is used in the ListUsers and ListGroups requests. + // + // Deprecated: Using filters with ListGroups API is deprecated, please use GetGroupId API instead. + Filters []*Filter `deprecated:"true" type:"list"` + + // The globally unique identifier for the identity store, such as d-1234567890. + // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated + // string that contains numbers and lower case letters. This value is generated + // at the time that a new identity store is created. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The maximum number of results to be returned per request. This parameter + // is used in the ListUsers and ListGroups requests to specify how many results + // to return in one page. The length limit is 50 characters. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token used for the ListUsers and ListGroups API operations. + // This value is generated by the identity store service. It is returned in + // the API response if the total results are more than the size of one page. + // This token is also returned when it is used in the API request to search + // for the next page. + NextToken *string `min:"1" type:"string"` } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListGroupsInput"} + if s.IdentityStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) + } + if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetFilters sets the Filters field's value. +func (s *ListGroupsInput) SetFilters(v []*Filter) *ListGroupsInput { + s.Filters = v + return s +} + +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *ListGroupsInput) SetIdentityStoreId(v string) *ListGroupsInput { + s.IdentityStoreId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListGroupsInput) SetMaxResults(v int64) *ListGroupsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGroupsInput) SetNextToken(v string) *ListGroupsInput { + s.NextToken = &v + return s +} + +type ListGroupsOutput struct { + _ struct{} `type:"structure"` + + // A list of Group objects in the identity store. + // + // Groups is a required field + Groups []*Group `type:"list" required:"true"` + + // The pagination token used for the ListUsers and ListGroups API operations. + // This value is generated by the identity store service. It is returned in + // the API response if the total results are more than the size of one page. + // This token is also returned when it1 is used in the API request to search + // for the next page. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListGroupsOutput) GoString() string { + return s.String() } -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetGroups sets the Groups field's value. +func (s *ListGroupsOutput) SetGroups(v []*Group) *ListGroupsOutput { + s.Groups = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID +// SetNextToken sets the NextToken field's value. +func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput { + s.NextToken = &v + return s } -type DescribeGroupInput struct { +type ListUsersInput struct { _ struct{} `type:"structure"` - // The identifier for a group in the identity store. + // A list of Filter objects that is used in the ListUsers and ListGroups requests. // - // GroupId is a required field - GroupId *string `min:"1" type:"string" required:"true"` + // Deprecated: Using filters with ListUsers API is deprecated, please use GetGroupId API instead. + Filters []*Filter `deprecated:"true" type:"list"` // The globally unique identifier for the identity store, such as d-1234567890. // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string that contains number and lower case letters. This value is generated + // string that contains numbers and lower case letters. This value is generated // at the time that a new identity store is created. // // IdentityStoreId is a required field IdentityStoreId *string `min:"1" type:"string" required:"true"` + + // The maximum number of results to be returned per request. This parameter + // is used in the ListUsers and ListGroups requests to specify how many results + // to return in one page. The length limit is 50 characters. + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token used for the ListUsers and ListGroups API operations. + // This value is generated by the identity store service. It is returned in + // the API response if the total results are more than the size of one page. + // This token is also returned when it is used in the API request to search + // for the next page. + NextToken *string `min:"1" type:"string"` } // String returns the string representation. @@ -594,7 +5402,7 @@ type DescribeGroupInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeGroupInput) String() string { +func (s ListUsersInput) String() string { return awsutil.Prettify(s) } @@ -603,25 +5411,35 @@ func (s DescribeGroupInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeGroupInput) GoString() string { +func (s ListUsersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeGroupInput"} - if s.GroupId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupId")) - } - if s.GroupId != nil && len(*s.GroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) - } +func (s *ListUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} if s.IdentityStoreId == nil { invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) } if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -629,35 +5447,44 @@ func (s *DescribeGroupInput) Validate() error { return nil } -// SetGroupId sets the GroupId field's value. -func (s *DescribeGroupInput) SetGroupId(v string) *DescribeGroupInput { - s.GroupId = &v +// SetFilters sets the Filters field's value. +func (s *ListUsersInput) SetFilters(v []*Filter) *ListUsersInput { + s.Filters = v return s } // SetIdentityStoreId sets the IdentityStoreId field's value. -func (s *DescribeGroupInput) SetIdentityStoreId(v string) *DescribeGroupInput { +func (s *ListUsersInput) SetIdentityStoreId(v string) *ListUsersInput { s.IdentityStoreId = &v return s } -type DescribeGroupOutput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { + s.NextToken = &v + return s +} + +type ListUsersOutput struct { _ struct{} `type:"structure"` - // Contains the group’s display name value. The length limit is 1,024 characters. - // This value can consist of letters, accented characters, symbols, numbers, - // punctuation, tab, new line, carriage return, space, and nonbreaking space - // in this attribute. The characters <>;:% are excluded. This value is specified - // at the time that the group is created and stored as an attribute of the group - // object in the identity store. - // - // DisplayName is a required field - DisplayName *string `min:"1" type:"string" required:"true"` + // The pagination token used for the ListUsers and ListGroups API operations. + // This value is generated by the identity store service. It is returned in + // the API response if the total results are more than the size of one page. + // This token is also returned when it is used in the API request to search + // for the next page. + NextToken *string `min:"1" type:"string"` - // The identifier for a group in the identity store. + // A list of User objects in the identity store. // - // GroupId is a required field - GroupId *string `min:"1" type:"string" required:"true"` + // Users is a required field + Users []*User `type:"list" required:"true"` } // String returns the string representation. @@ -665,7 +5492,7 @@ type DescribeGroupOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeGroupOutput) String() string { +func (s ListUsersOutput) String() string { return awsutil.Prettify(s) } @@ -674,37 +5501,112 @@ func (s DescribeGroupOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeGroupOutput) GoString() string { +func (s ListUsersOutput) GoString() string { return s.String() } -// SetDisplayName sets the DisplayName field's value. -func (s *DescribeGroupOutput) SetDisplayName(v string) *DescribeGroupOutput { - s.DisplayName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListUsersOutput) SetNextToken(v string) *ListUsersOutput { + s.NextToken = &v return s } -// SetGroupId sets the GroupId field's value. -func (s *DescribeGroupOutput) SetGroupId(v string) *DescribeGroupOutput { - s.GroupId = &v +// SetUsers sets the Users field's value. +func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput { + s.Users = v return s } -type DescribeUserInput struct { +// An object containing the identifier of a group member. +type MemberId struct { _ struct{} `type:"structure"` - // The globally unique identifier for the identity store, such as d-1234567890. - // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string that contains number and lower case letters. This value is generated - // at the time that a new identity store is created. + // An object containing the identifiers of resources that can be members. + UserId *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MemberId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MemberId) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MemberId) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MemberId"} + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserId sets the UserId field's value. +func (s *MemberId) SetUserId(v string) *MemberId { + s.UserId = &v + return s +} + +// The name of the user. +type Name struct { + _ struct{} `type:"structure"` + + // The family name of the user. // - // IdentityStoreId is a required field - IdentityStoreId *string `min:"1" type:"string" required:"true"` + // FamilyName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Name's + // String and GoString methods. + FamilyName *string `min:"1" type:"string" sensitive:"true"` - // The identifier for a user in the identity store. + // A string containing a formatted version of the name for display. // - // UserId is a required field - UserId *string `min:"1" type:"string" required:"true"` + // Formatted is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Name's + // String and GoString methods. + Formatted *string `min:"1" type:"string" sensitive:"true"` + + // The given name of the user. + // + // GivenName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Name's + // String and GoString methods. + GivenName *string `min:"1" type:"string" sensitive:"true"` + + // The honorific prefix of the user. For example, "Dr." + // + // HonorificPrefix is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Name's + // String and GoString methods. + HonorificPrefix *string `min:"1" type:"string" sensitive:"true"` + + // The honorific suffix of the user. For example, "M.D." + // + // HonorificSuffix is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Name's + // String and GoString methods. + HonorificSuffix *string `min:"1" type:"string" sensitive:"true"` + + // The middle name of the user. + // + // MiddleName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Name's + // String and GoString methods. + MiddleName *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -712,7 +5614,7 @@ type DescribeUserInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeUserInput) String() string { +func (s Name) String() string { return awsutil.Prettify(s) } @@ -721,24 +5623,30 @@ func (s DescribeUserInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeUserInput) GoString() string { +func (s Name) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} - if s.IdentityStoreId == nil { - invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) +func (s *Name) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Name"} + if s.FamilyName != nil && len(*s.FamilyName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FamilyName", 1)) } - if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) + if s.Formatted != nil && len(*s.Formatted) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Formatted", 1)) } - if s.UserId == nil { - invalidParams.Add(request.NewErrParamRequired("UserId")) + if s.GivenName != nil && len(*s.GivenName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GivenName", 1)) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.HonorificPrefix != nil && len(*s.HonorificPrefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HonorificPrefix", 1)) + } + if s.HonorificSuffix != nil && len(*s.HonorificSuffix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HonorificSuffix", 1)) + } + if s.MiddleName != nil && len(*s.MiddleName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MiddleName", 1)) } if invalidParams.Len() > 0 { @@ -747,38 +5655,67 @@ func (s *DescribeUserInput) Validate() error { return nil } -// SetIdentityStoreId sets the IdentityStoreId field's value. -func (s *DescribeUserInput) SetIdentityStoreId(v string) *DescribeUserInput { - s.IdentityStoreId = &v +// SetFamilyName sets the FamilyName field's value. +func (s *Name) SetFamilyName(v string) *Name { + s.FamilyName = &v return s } -// SetUserId sets the UserId field's value. -func (s *DescribeUserInput) SetUserId(v string) *DescribeUserInput { - s.UserId = &v +// SetFormatted sets the Formatted field's value. +func (s *Name) SetFormatted(v string) *Name { + s.Formatted = &v return s } -type DescribeUserOutput struct { +// SetGivenName sets the GivenName field's value. +func (s *Name) SetGivenName(v string) *Name { + s.GivenName = &v + return s +} + +// SetHonorificPrefix sets the HonorificPrefix field's value. +func (s *Name) SetHonorificPrefix(v string) *Name { + s.HonorificPrefix = &v + return s +} + +// SetHonorificSuffix sets the HonorificSuffix field's value. +func (s *Name) SetHonorificSuffix(v string) *Name { + s.HonorificSuffix = &v + return s +} + +// SetMiddleName sets the MiddleName field's value. +func (s *Name) SetMiddleName(v string) *Name { + s.MiddleName = &v + return s +} + +// The phone number associated with the user. +type PhoneNumber struct { _ struct{} `type:"structure"` - // The identifier for a user in the identity store. + // A boolean representing whether this is the primary phone number for the associated + // resource. // - // UserId is a required field - UserId *string `min:"1" type:"string" required:"true"` + // Primary is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumber's + // String and GoString methods. + Primary *bool `type:"boolean" sensitive:"true"` - // Contains the user’s user name value. The length limit is 128 characters. - // This value can consist of letters, accented characters, symbols, numbers, - // and punctuation. The characters <>;:% are excluded. This value is specified - // at the time the user is created and stored as an attribute of the user object - // in the identity store. + // A string representing the type of a phone number. For example, "Mobile." // - // UserName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by DescribeUserOutput's + // Type is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumber's // String and GoString methods. + Type *string `min:"1" type:"string" sensitive:"true"` + + // A string containing a phone number. For example, "8675309" or "+1 (800) 123-4567". // - // UserName is a required field - UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` + // Value is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumber's + // String and GoString methods. + Value *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -786,7 +5723,7 @@ type DescribeUserOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeUserOutput) String() string { +func (s PhoneNumber) String() string { return awsutil.Prettify(s) } @@ -795,44 +5732,68 @@ func (s DescribeUserOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeUserOutput) GoString() string { +func (s PhoneNumber) GoString() string { return s.String() } -// SetUserId sets the UserId field's value. -func (s *DescribeUserOutput) SetUserId(v string) *DescribeUserOutput { - s.UserId = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *PhoneNumber) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PhoneNumber"} + if s.Type != nil && len(*s.Type) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Type", 1)) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPrimary sets the Primary field's value. +func (s *PhoneNumber) SetPrimary(v bool) *PhoneNumber { + s.Primary = &v return s } -// SetUserName sets the UserName field's value. -func (s *DescribeUserOutput) SetUserName(v string) *DescribeUserOutput { - s.UserName = &v +// SetType sets the Type field's value. +func (s *PhoneNumber) SetType(v string) *PhoneNumber { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *PhoneNumber) SetValue(v string) *PhoneNumber { + s.Value = &v return s } -// A query filter used by ListUsers and ListGroups. This filter object provides -// the attribute name and attribute value to search users or groups. -type Filter struct { - _ struct{} `type:"structure"` +// Indicates that a requested resource is not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` + + // The identifier for each request. This value is a globally unique ID that + // is generated by the identity store service for each sent request, and is + // then returned inside the exception if the request fails. + RequestId *string `min:"1" type:"string"` - // The attribute path that is used to specify which attribute name to search. - // Length limit is 255 characters. For example, UserName is a valid attribute - // path for the ListUsers API, and DisplayName is a valid attribute path for - // the ListGroups API. - // - // AttributePath is a required field - AttributePath *string `min:"1" type:"string" required:"true"` + // The identifier for a resource in the identity store that can be used as UserId + // or GroupId. The format for ResourceId is either UUID or 1234567890-UUID, + // where UUID is a randomly generated value for each resource when it is created + // and 1234567890 represents the IdentityStoreId string value. In the case that + // the identity store is migrated from a legacy SSO identity store, the ResourceId + // for that identity store will be in the format of UUID. Otherwise, it will + // be in the 1234567890-UUID format. + ResourceId *string `min:"1" type:"string"` - // Represents the data for an attribute. Each attribute value is described as - // a name-value pair. - // - // AttributeValue is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Filter's - // String and GoString methods. - // - // AttributeValue is a required field - AttributeValue *string `min:"1" type:"string" required:"true" sensitive:"true"` + // An enum object indicating the type of resource in the identity store service. + // Valid values include USER, GROUP, and IDENTITY_STORE. + ResourceType *string `type:"string" enum:"ResourceType"` } // String returns the string representation. @@ -840,7 +5801,7 @@ type Filter struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Filter) String() string { +func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } @@ -849,62 +5810,60 @@ func (s Filter) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Filter) GoString() string { +func (s ResourceNotFoundException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Filter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Filter"} - if s.AttributePath == nil { - invalidParams.Add(request.NewErrParamRequired("AttributePath")) - } - if s.AttributePath != nil && len(*s.AttributePath) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributePath", 1)) - } - if s.AttributeValue == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeValue")) - } - if s.AttributeValue != nil && len(*s.AttributeValue) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributeValue", 1)) +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { return nil } -// SetAttributePath sets the AttributePath field's value. -func (s *Filter) SetAttributePath(v string) *Filter { - s.AttributePath = &v - return s +func (s *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetAttributeValue sets the AttributeValue field's value. -func (s *Filter) SetAttributeValue(v string) *Filter { - s.AttributeValue = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode } -// A group object, which contains a specified group’s metadata and attributes. -type Group struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} - // Contains the group’s display name value. The length limit is 1,024 characters. - // This value can consist of letters, accented characters, symbols, numbers, - // punctuation, tab, new line, carriage return, space, and nonbreaking space - // in this attribute. The characters <>;:% are excluded. This value is specified - // at the time the group is created and stored as an attribute of the group - // object in the identity store. - // - // DisplayName is a required field - DisplayName *string `min:"1" type:"string" required:"true"` +// The request would cause the number of users or groups in the identity store +// to exceed the maximum allowed. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The identifier for a group in the identity store. - // - // GroupId is a required field - GroupId *string `min:"1" type:"string" required:"true"` + Message_ *string `locationName:"Message" type:"string"` + + // The identifier for each request. This value is a globally unique ID that + // is generated by the identity store service for each sent request, and is + // then returned inside the exception if the request fails. + RequestId *string `min:"1" type:"string"` } // String returns the string representation. @@ -912,7 +5871,7 @@ type Group struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Group) String() string { +func (s ServiceQuotaExceededException) String() string { return awsutil.Prettify(s) } @@ -921,34 +5880,64 @@ func (s Group) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Group) GoString() string { +func (s ServiceQuotaExceededException) GoString() string { return s.String() } -// SetDisplayName sets the DisplayName field's value. -func (s *Group) SetDisplayName(v string) *Group { - s.DisplayName = &v - return s +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + RespMetadata: v, + } } -// SetGroupId sets the GroupId field's value. -func (s *Group) SetGroupId(v string) *Group { - s.GroupId = &v - return s +// Code returns the exception type name. +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" } -// The request processing has failed because of an unknown error, exception -// or failure with an internal server. -type InternalServerException struct { +// Message returns the exception's message. +func (s *ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceQuotaExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceQuotaExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Indicates that the principal has crossed the throttling limits of the API +// operations. +type ThrottlingException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - Message_ *string `locationName:"Message" min:"1" type:"string"` + Message_ *string `locationName:"Message" type:"string"` // The identifier for each request. This value is a globally unique ID that // is generated by the identity store service for each sent request, and is // then returned inside the exception if the request fails. - RequestId *string `type:"string"` + RequestId *string `min:"1" type:"string"` + + // The number of seconds that you would like to wait before retrying the next + // request. + RetryAfterSeconds *int64 `type:"integer"` } // String returns the string representation. @@ -956,7 +5945,7 @@ type InternalServerException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InternalServerException) String() string { +func (s ThrottlingException) String() string { return awsutil.Prettify(s) } @@ -965,23 +5954,23 @@ func (s InternalServerException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InternalServerException) GoString() string { +func (s ThrottlingException) GoString() string { return s.String() } -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" +func (s *ThrottlingException) Code() string { + return "ThrottlingException" } // Message returns the exception's message. -func (s *InternalServerException) Message() string { +func (s *ThrottlingException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -989,49 +5978,42 @@ func (s *InternalServerException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { +func (s *ThrottlingException) OrigErr() error { return nil } -func (s *InternalServerException) Error() string { +func (s *ThrottlingException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { +func (s *ThrottlingException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { +func (s *ThrottlingException) RequestID() string { return s.RespMetadata.RequestID } -type ListGroupsInput struct { +type UpdateGroupInput struct { _ struct{} `type:"structure"` - // A list of Filter objects, which is used in the ListUsers and ListGroups request. - Filters []*Filter `type:"list"` + // The identifier for a group in the identity store. + // + // GroupId is a required field + GroupId *string `min:"1" type:"string" required:"true"` - // The globally unique identifier for the identity store, such as d-1234567890. - // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string that contains number and lower case letters. This value is generated - // at the time that a new identity store is created. + // The globally unique identifier for the identity store. // // IdentityStoreId is a required field IdentityStoreId *string `min:"1" type:"string" required:"true"` - // The maximum number of results to be returned per request. This parameter - // is used in the ListUsers and ListGroups request to specify how many results - // to return in one page. The length limit is 50 characters. - MaxResults *int64 `min:"1" type:"integer"` - - // The pagination token used for the ListUsers and ListGroups API operations. - // This value is generated by the identity store service. It is returned in - // the API response if the total results are more than the size of one page. - // This token is also returned when it is used in the API request to search - // for the next page. - NextToken *string `min:"1" type:"string"` + // A list of AttributeOperation objects to apply to the requested group. These + // operations might add, replace, or remove an attribute. + // + // Operations is a required field + Operations []*AttributeOperation `min:"1" type:"list" required:"true"` } // String returns the string representation. @@ -1039,7 +6021,7 @@ type ListGroupsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListGroupsInput) String() string { +func (s UpdateGroupInput) String() string { return awsutil.Prettify(s) } @@ -1048,32 +6030,38 @@ func (s ListGroupsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListGroupsInput) GoString() string { +func (s UpdateGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGroupsInput"} +func (s *UpdateGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateGroupInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if s.IdentityStoreId == nil { invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) } if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.Operations == nil { + invalidParams.Add(request.NewErrParamRequired("Operations")) } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + if s.Operations != nil && len(s.Operations) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Operations", 1)) } - if s.Filters != nil { - for i, v := range s.Filters { + if s.Operations != nil { + for i, v := range s.Operations { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Operations", i), err.(request.ErrInvalidParams)) } } } @@ -1084,44 +6072,26 @@ func (s *ListGroupsInput) Validate() error { return nil } -// SetFilters sets the Filters field's value. -func (s *ListGroupsInput) SetFilters(v []*Filter) *ListGroupsInput { - s.Filters = v +// SetGroupId sets the GroupId field's value. +func (s *UpdateGroupInput) SetGroupId(v string) *UpdateGroupInput { + s.GroupId = &v return s } // SetIdentityStoreId sets the IdentityStoreId field's value. -func (s *ListGroupsInput) SetIdentityStoreId(v string) *ListGroupsInput { +func (s *UpdateGroupInput) SetIdentityStoreId(v string) *UpdateGroupInput { s.IdentityStoreId = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListGroupsInput) SetMaxResults(v int64) *ListGroupsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListGroupsInput) SetNextToken(v string) *ListGroupsInput { - s.NextToken = &v +// SetOperations sets the Operations field's value. +func (s *UpdateGroupInput) SetOperations(v []*AttributeOperation) *UpdateGroupInput { + s.Operations = v return s } -type ListGroupsOutput struct { +type UpdateGroupOutput struct { _ struct{} `type:"structure"` - - // A list of Group objects in the identity store. - // - // Groups is a required field - Groups []*Group `type:"list" required:"true"` - - // The pagination token used for the ListUsers and ListGroups API operations. - // This value is generated by the identity store service. It is returned in - // the API response if the total results are more than the size of one page. - // This token is also returned when it1 is used in the API request to search - // for the next page. - NextToken *string `min:"1" type:"string"` } // String returns the string representation. @@ -1129,7 +6099,7 @@ type ListGroupsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListGroupsOutput) String() string { +func (s UpdateGroupOutput) String() string { return awsutil.Prettify(s) } @@ -1138,47 +6108,28 @@ func (s ListGroupsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListGroupsOutput) GoString() string { +func (s UpdateGroupOutput) GoString() string { return s.String() } -// SetGroups sets the Groups field's value. -func (s *ListGroupsOutput) SetGroups(v []*Group) *ListGroupsOutput { - s.Groups = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput { - s.NextToken = &v - return s -} - -type ListUsersInput struct { +type UpdateUserInput struct { _ struct{} `type:"structure"` - // A list of Filter objects, which is used in the ListUsers and ListGroups request. - Filters []*Filter `type:"list"` - - // The globally unique identifier for the identity store, such as d-1234567890. - // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated - // string that contains number and lower case letters. This value is generated - // at the time that a new identity store is created. + // The globally unique identifier for the identity store. // // IdentityStoreId is a required field IdentityStoreId *string `min:"1" type:"string" required:"true"` - // The maximum number of results to be returned per request. This parameter - // is used in the ListUsers and ListGroups request to specify how many results - // to return in one page. The length limit is 50 characters. - MaxResults *int64 `min:"1" type:"integer"` + // A list of AttributeOperation objects to apply to the requested user. These + // operations might add, replace, or remove an attribute. + // + // Operations is a required field + Operations []*AttributeOperation `min:"1" type:"list" required:"true"` - // The pagination token used for the ListUsers and ListGroups API operations. - // This value is generated by the identity store service. It is returned in - // the API response if the total results are more than the size of one page. - // This token is also returned when it is used in the API request to search - // for the next page. - NextToken *string `min:"1" type:"string"` + // The identifier for a user in the identity store. + // + // UserId is a required field + UserId *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -1186,7 +6137,7 @@ type ListUsersInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListUsersInput) String() string { +func (s UpdateUserInput) String() string { return awsutil.Prettify(s) } @@ -1195,32 +6146,38 @@ func (s ListUsersInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListUsersInput) GoString() string { +func (s UpdateUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListUsersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} +func (s *UpdateUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateUserInput"} if s.IdentityStoreId == nil { invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) } if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.Operations == nil { + invalidParams.Add(request.NewErrParamRequired("Operations")) } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + if s.Operations != nil && len(s.Operations) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Operations", 1)) } - if s.Filters != nil { - for i, v := range s.Filters { + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + if s.Operations != nil { + for i, v := range s.Operations { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Operations", i), err.(request.ErrInvalidParams)) } } } @@ -1231,44 +6188,26 @@ func (s *ListUsersInput) Validate() error { return nil } -// SetFilters sets the Filters field's value. -func (s *ListUsersInput) SetFilters(v []*Filter) *ListUsersInput { - s.Filters = v - return s -} - // SetIdentityStoreId sets the IdentityStoreId field's value. -func (s *ListUsersInput) SetIdentityStoreId(v string) *ListUsersInput { +func (s *UpdateUserInput) SetIdentityStoreId(v string) *UpdateUserInput { s.IdentityStoreId = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { - s.MaxResults = &v +// SetOperations sets the Operations field's value. +func (s *UpdateUserInput) SetOperations(v []*AttributeOperation) *UpdateUserInput { + s.Operations = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { - s.NextToken = &v +// SetUserId sets the UserId field's value. +func (s *UpdateUserInput) SetUserId(v string) *UpdateUserInput { + s.UserId = &v return s } -type ListUsersOutput struct { +type UpdateUserOutput struct { _ struct{} `type:"structure"` - - // The pagination token used for the ListUsers and ListGroups API operations. - // This value is generated by the identity store service. It is returned in - // the API response if the total results are more than the size of one page. - // This token is also returned when it is used in the API request to search - // for the next page. - NextToken *string `min:"1" type:"string"` - - // A list of User objects in the identity store. - // - // Users is a required field - Users []*User `type:"list" required:"true"` } // String returns the string representation. @@ -1276,7 +6215,7 @@ type ListUsersOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListUsersOutput) String() string { +func (s UpdateUserOutput) String() string { return awsutil.Prettify(s) } @@ -1285,116 +6224,111 @@ func (s ListUsersOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ListUsersOutput) GoString() string { +func (s UpdateUserOutput) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListUsersOutput) SetNextToken(v string) *ListUsersOutput { - s.NextToken = &v - return s -} - -// SetUsers sets the Users field's value. -func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput { - s.Users = v - return s -} - -// Indicates that a requested resource is not found. -type ResourceNotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// A user object that contains a specified user’s metadata and attributes. +type User struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" min:"1" type:"string"` + // A list of Address objects containing addresses associated with the user. + Addresses []*Address `min:"1" type:"list"` - // The identifier for each request. This value is a globally unique ID that - // is generated by the identity store service for each sent request, and is - // then returned inside the exception if the request fails. - RequestId *string `type:"string"` + // A string containing the user's name that's formatted for display when the + // user is referenced. For example, "John Doe." + // + // DisplayName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + DisplayName *string `min:"1" type:"string" sensitive:"true"` - // The identifier for a resource in the identity store, which can be used as - // UserId or GroupId. The format for ResourceId is either UUID or 1234567890-UUID, - // where UUID is a randomly generated value for each resource when it is created - // and 1234567890 represents the IdentityStoreId string value. In the case that - // the identity store is migrated from a legacy single sign-on identity store, - // the ResourceId for that identity store will be in the format of UUID. Otherwise, - // it will be in the 1234567890-UUID format. - ResourceId *string `min:"1" type:"string"` + // A list of Email objects containing email addresses associated with the user. + Emails []*Email `min:"1" type:"list"` - // The type of resource in the identity store service, which is an enum object. - // Valid values include USER, GROUP, and IDENTITY_STORE. - ResourceType *string `type:"string" enum:"ResourceType"` -} + // A list of ExternalId objects that contains the identifiers issued to this + // resource by an external identity provider. + ExternalIds []*ExternalId `min:"1" type:"list"` -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourceNotFoundException) String() string { - return awsutil.Prettify(s) -} + // The globally unique identifier for the identity store. + // + // IdentityStoreId is a required field + IdentityStoreId *string `min:"1" type:"string" required:"true"` -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourceNotFoundException) GoString() string { - return s.String() -} + // A string containing the user's geographical region or location. + // + // Locale is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + Locale *string `min:"1" type:"string" sensitive:"true"` -func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { - return &ResourceNotFoundException{ - RespMetadata: v, - } -} + // An object containing the user's name. + Name *Name `type:"structure"` -// Code returns the exception type name. -func (s *ResourceNotFoundException) Code() string { - return "ResourceNotFoundException" -} + // A string containing an alternate name for the user. + // + // NickName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + NickName *string `min:"1" type:"string" sensitive:"true"` -// Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} + // A list of PhoneNumber objects containing phone numbers associated with the + // user. + PhoneNumbers []*PhoneNumber `min:"1" type:"list"` -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { - return nil -} + // A string containing the preferred language of the user. For example, "American + // English" or "en-us." + // + // PreferredLanguage is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + PreferredLanguage *string `min:"1" type:"string" sensitive:"true"` -func (s *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} + // A string containing a URL that may be associated with the user. + // + // ProfileUrl is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + ProfileUrl *string `min:"1" type:"string" sensitive:"true"` -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode -} + // A string containing the user's time zone. + // + // Timezone is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + Timezone *string `min:"1" type:"string" sensitive:"true"` -// RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { - return s.RespMetadata.RequestID -} + // A string containing the user's title. Possible values depend on each customer's + // specific needs, so they are left unspecified + // + // Title is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + Title *string `min:"1" type:"string" sensitive:"true"` -// Indicates that the principal has crossed the throttling limits of the API -// operations. -type ThrottlingException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The identifier for a user in the identity store. + // + // UserId is a required field + UserId *string `min:"1" type:"string" required:"true"` - Message_ *string `locationName:"Message" min:"1" type:"string"` + // The user’s user name value. The length limit is 128 characters. This value + // can consist of letters, accented characters, symbols, numbers, and punctuation. + // The characters <>;:% are excluded. This value is specified at the time the + // user is created and stored as an attribute of the user object in the identity + // store. + // + // UserName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + UserName *string `min:"1" type:"string" sensitive:"true"` - // The identifier for each request. This value is a globally unique ID that - // is generated by the identity store service for each sent request, and is - // then returned inside the exception if the request fails. - RequestId *string `type:"string"` + // A string indicating the user's type. Possible values depend on each customer's + // specific needs, so they are left unspecified. + // + // UserType is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + UserType *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -1402,7 +6336,7 @@ type ThrottlingException struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThrottlingException) String() string { +func (s User) String() string { return awsutil.Prettify(s) } @@ -1411,87 +6345,86 @@ func (s ThrottlingException) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ThrottlingException) GoString() string { +func (s User) GoString() string { return s.String() } -func newErrorThrottlingException(v protocol.ResponseMetadata) error { - return &ThrottlingException{ - RespMetadata: v, - } +// SetAddresses sets the Addresses field's value. +func (s *User) SetAddresses(v []*Address) *User { + s.Addresses = v + return s } -// Code returns the exception type name. -func (s *ThrottlingException) Code() string { - return "ThrottlingException" +// SetDisplayName sets the DisplayName field's value. +func (s *User) SetDisplayName(v string) *User { + s.DisplayName = &v + return s } -// Message returns the exception's message. -func (s *ThrottlingException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetEmails sets the Emails field's value. +func (s *User) SetEmails(v []*Email) *User { + s.Emails = v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ThrottlingException) OrigErr() error { - return nil +// SetExternalIds sets the ExternalIds field's value. +func (s *User) SetExternalIds(v []*ExternalId) *User { + s.ExternalIds = v + return s } -func (s *ThrottlingException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetIdentityStoreId sets the IdentityStoreId field's value. +func (s *User) SetIdentityStoreId(v string) *User { + s.IdentityStoreId = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ThrottlingException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetLocale sets the Locale field's value. +func (s *User) SetLocale(v string) *User { + s.Locale = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ThrottlingException) RequestID() string { - return s.RespMetadata.RequestID +// SetName sets the Name field's value. +func (s *User) SetName(v *Name) *User { + s.Name = v + return s } -// A user object, which contains a specified user’s metadata and attributes. -type User struct { - _ struct{} `type:"structure"` +// SetNickName sets the NickName field's value. +func (s *User) SetNickName(v string) *User { + s.NickName = &v + return s +} - // The identifier for a user in the identity store. - // - // UserId is a required field - UserId *string `min:"1" type:"string" required:"true"` +// SetPhoneNumbers sets the PhoneNumbers field's value. +func (s *User) SetPhoneNumbers(v []*PhoneNumber) *User { + s.PhoneNumbers = v + return s +} - // Contains the user’s user name value. The length limit is 128 characters. - // This value can consist of letters, accented characters, symbols, numbers, - // and punctuation. The characters <>;:% are excluded. This value is specified - // at the time the user is created and stored as an attribute of the user object - // in the identity store. - // - // UserName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by User's - // String and GoString methods. - // - // UserName is a required field - UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` +// SetPreferredLanguage sets the PreferredLanguage field's value. +func (s *User) SetPreferredLanguage(v string) *User { + s.PreferredLanguage = &v + return s } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s User) String() string { - return awsutil.Prettify(s) +// SetProfileUrl sets the ProfileUrl field's value. +func (s *User) SetProfileUrl(v string) *User { + s.ProfileUrl = &v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s User) GoString() string { - return s.String() +// SetTimezone sets the Timezone field's value. +func (s *User) SetTimezone(v string) *User { + s.Timezone = &v + return s +} + +// SetTitle sets the Title field's value. +func (s *User) SetTitle(v string) *User { + s.Title = &v + return s } // SetUserId sets the UserId field's value. @@ -1506,17 +6439,23 @@ func (s *User) SetUserName(v string) *User { return s } +// SetUserType sets the UserType field's value. +func (s *User) SetUserType(v string) *User { + s.UserType = &v + return s +} + // The request failed because it contains a syntax error. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - Message_ *string `locationName:"Message" min:"1" type:"string"` + Message_ *string `locationName:"Message" type:"string"` // The identifier for each request. This value is a globally unique ID that // is generated by the identity store service for each sent request, and is // then returned inside the exception if the request fails. - RequestId *string `type:"string"` + RequestId *string `min:"1" type:"string"` } // String returns the string representation. @@ -1575,6 +6514,22 @@ func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } +const ( + // ConflictExceptionReasonUniquenessConstraintViolation is a ConflictExceptionReason enum value + ConflictExceptionReasonUniquenessConstraintViolation = "UNIQUENESS_CONSTRAINT_VIOLATION" + + // ConflictExceptionReasonConcurrentModification is a ConflictExceptionReason enum value + ConflictExceptionReasonConcurrentModification = "CONCURRENT_MODIFICATION" +) + +// ConflictExceptionReason_Values returns all elements of the ConflictExceptionReason enum +func ConflictExceptionReason_Values() []string { + return []string{ + ConflictExceptionReasonUniquenessConstraintViolation, + ConflictExceptionReasonConcurrentModification, + } +} + const ( // ResourceTypeGroup is a ResourceType enum value ResourceTypeGroup = "GROUP" @@ -1584,6 +6539,9 @@ const ( // ResourceTypeIdentityStore is a ResourceType enum value ResourceTypeIdentityStore = "IDENTITY_STORE" + + // ResourceTypeGroupMembership is a ResourceType enum value + ResourceTypeGroupMembership = "GROUP_MEMBERSHIP" ) // ResourceType_Values returns all elements of the ResourceType enum @@ -1592,5 +6550,6 @@ func ResourceType_Values() []string { ResourceTypeGroup, ResourceTypeUser, ResourceTypeIdentityStore, + ResourceTypeGroupMembership, } } diff --git a/service/identitystore/doc.go b/service/identitystore/doc.go index 7fa0b1ee35..72d023b8a5 100644 --- a/service/identitystore/doc.go +++ b/service/identitystore/doc.go @@ -3,18 +3,9 @@ // Package identitystore provides the client and types for making API // requests to AWS SSO Identity Store. // -// The Identity Store service used by AWS IAM Identity Center (successor to -// AWS Single Sign-On) provides a single place to retrieve all of your identities -// (users and groups). For more information, see the IAM Identity Center User -// Guide (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html). -// -// Although AWS Single Sign-On was renamed, the sso and identitystore API namespaces -// will continue to retain their original name for backward compatibility purposes. -// For more information, see IAM Identity Center rename (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed). -// -// This reference guide describes the identity store operations that you can -// call programatically and includes detailed information on data types and -// errors. +// The AWS Single Sign-On (SSO) Identity Store service provides a single place +// to retrieve all of your identities (users and groups). For more information +// about AWS, see the AWS Single Sign-On User Guide (https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html). // // See https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15 for more information on this service. // diff --git a/service/identitystore/errors.go b/service/identitystore/errors.go index c837ae8197..6aadfa2afd 100644 --- a/service/identitystore/errors.go +++ b/service/identitystore/errors.go @@ -14,6 +14,18 @@ const ( // You do not have sufficient access to perform this action. ErrCodeAccessDeniedException = "AccessDeniedException" + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // This request cannot be completed for one of the following reasons: + // + // * Performing the requested operation would violate an existing uniqueness + // claim in the identity store. Resolve the conflict before retrying this + // request. + // + // * The requested resource was being concurrently modified by another request. + ErrCodeConflictException = "ConflictException" + // ErrCodeInternalServerException for service response error code // "InternalServerException". // @@ -27,6 +39,13 @@ const ( // Indicates that a requested resource is not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" + // ErrCodeServiceQuotaExceededException for service response error code + // "ServiceQuotaExceededException". + // + // The request would cause the number of users or groups in the identity store + // to exceed the maximum allowed. + ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + // ErrCodeThrottlingException for service response error code // "ThrottlingException". // @@ -42,9 +61,11 @@ const ( ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ - "AccessDeniedException": newErrorAccessDeniedException, - "InternalServerException": newErrorInternalServerException, - "ResourceNotFoundException": newErrorResourceNotFoundException, - "ThrottlingException": newErrorThrottlingException, - "ValidationException": newErrorValidationException, + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, } diff --git a/service/identitystore/identitystoreiface/interface.go b/service/identitystore/identitystoreiface/interface.go index ade93a0135..039bcf9646 100644 --- a/service/identitystore/identitystoreiface/interface.go +++ b/service/identitystore/identitystoreiface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS SSO Identity Store. // func myFunc(svc identitystoreiface.IdentityStoreAPI) bool { -// // Make svc.DescribeGroup request +// // Make svc.CreateGroup request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockIdentityStoreClient struct { // identitystoreiface.IdentityStoreAPI // } -// func (m *mockIdentityStoreClient) DescribeGroup(input *identitystore.DescribeGroupInput) (*identitystore.DescribeGroupOutput, error) { +// func (m *mockIdentityStoreClient) CreateGroup(input *identitystore.CreateGroupInput) (*identitystore.CreateGroupOutput, error) { // // mock response/functionality // } // @@ -60,14 +60,72 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type IdentityStoreAPI interface { + CreateGroup(*identitystore.CreateGroupInput) (*identitystore.CreateGroupOutput, error) + CreateGroupWithContext(aws.Context, *identitystore.CreateGroupInput, ...request.Option) (*identitystore.CreateGroupOutput, error) + CreateGroupRequest(*identitystore.CreateGroupInput) (*request.Request, *identitystore.CreateGroupOutput) + + CreateGroupMembership(*identitystore.CreateGroupMembershipInput) (*identitystore.CreateGroupMembershipOutput, error) + CreateGroupMembershipWithContext(aws.Context, *identitystore.CreateGroupMembershipInput, ...request.Option) (*identitystore.CreateGroupMembershipOutput, error) + CreateGroupMembershipRequest(*identitystore.CreateGroupMembershipInput) (*request.Request, *identitystore.CreateGroupMembershipOutput) + + CreateUser(*identitystore.CreateUserInput) (*identitystore.CreateUserOutput, error) + CreateUserWithContext(aws.Context, *identitystore.CreateUserInput, ...request.Option) (*identitystore.CreateUserOutput, error) + CreateUserRequest(*identitystore.CreateUserInput) (*request.Request, *identitystore.CreateUserOutput) + + DeleteGroup(*identitystore.DeleteGroupInput) (*identitystore.DeleteGroupOutput, error) + DeleteGroupWithContext(aws.Context, *identitystore.DeleteGroupInput, ...request.Option) (*identitystore.DeleteGroupOutput, error) + DeleteGroupRequest(*identitystore.DeleteGroupInput) (*request.Request, *identitystore.DeleteGroupOutput) + + DeleteGroupMembership(*identitystore.DeleteGroupMembershipInput) (*identitystore.DeleteGroupMembershipOutput, error) + DeleteGroupMembershipWithContext(aws.Context, *identitystore.DeleteGroupMembershipInput, ...request.Option) (*identitystore.DeleteGroupMembershipOutput, error) + DeleteGroupMembershipRequest(*identitystore.DeleteGroupMembershipInput) (*request.Request, *identitystore.DeleteGroupMembershipOutput) + + DeleteUser(*identitystore.DeleteUserInput) (*identitystore.DeleteUserOutput, error) + DeleteUserWithContext(aws.Context, *identitystore.DeleteUserInput, ...request.Option) (*identitystore.DeleteUserOutput, error) + DeleteUserRequest(*identitystore.DeleteUserInput) (*request.Request, *identitystore.DeleteUserOutput) + DescribeGroup(*identitystore.DescribeGroupInput) (*identitystore.DescribeGroupOutput, error) DescribeGroupWithContext(aws.Context, *identitystore.DescribeGroupInput, ...request.Option) (*identitystore.DescribeGroupOutput, error) DescribeGroupRequest(*identitystore.DescribeGroupInput) (*request.Request, *identitystore.DescribeGroupOutput) + DescribeGroupMembership(*identitystore.DescribeGroupMembershipInput) (*identitystore.DescribeGroupMembershipOutput, error) + DescribeGroupMembershipWithContext(aws.Context, *identitystore.DescribeGroupMembershipInput, ...request.Option) (*identitystore.DescribeGroupMembershipOutput, error) + DescribeGroupMembershipRequest(*identitystore.DescribeGroupMembershipInput) (*request.Request, *identitystore.DescribeGroupMembershipOutput) + DescribeUser(*identitystore.DescribeUserInput) (*identitystore.DescribeUserOutput, error) DescribeUserWithContext(aws.Context, *identitystore.DescribeUserInput, ...request.Option) (*identitystore.DescribeUserOutput, error) DescribeUserRequest(*identitystore.DescribeUserInput) (*request.Request, *identitystore.DescribeUserOutput) + GetGroupId(*identitystore.GetGroupIdInput) (*identitystore.GetGroupIdOutput, error) + GetGroupIdWithContext(aws.Context, *identitystore.GetGroupIdInput, ...request.Option) (*identitystore.GetGroupIdOutput, error) + GetGroupIdRequest(*identitystore.GetGroupIdInput) (*request.Request, *identitystore.GetGroupIdOutput) + + GetGroupMembershipId(*identitystore.GetGroupMembershipIdInput) (*identitystore.GetGroupMembershipIdOutput, error) + GetGroupMembershipIdWithContext(aws.Context, *identitystore.GetGroupMembershipIdInput, ...request.Option) (*identitystore.GetGroupMembershipIdOutput, error) + GetGroupMembershipIdRequest(*identitystore.GetGroupMembershipIdInput) (*request.Request, *identitystore.GetGroupMembershipIdOutput) + + GetUserId(*identitystore.GetUserIdInput) (*identitystore.GetUserIdOutput, error) + GetUserIdWithContext(aws.Context, *identitystore.GetUserIdInput, ...request.Option) (*identitystore.GetUserIdOutput, error) + GetUserIdRequest(*identitystore.GetUserIdInput) (*request.Request, *identitystore.GetUserIdOutput) + + IsMemberInGroups(*identitystore.IsMemberInGroupsInput) (*identitystore.IsMemberInGroupsOutput, error) + IsMemberInGroupsWithContext(aws.Context, *identitystore.IsMemberInGroupsInput, ...request.Option) (*identitystore.IsMemberInGroupsOutput, error) + IsMemberInGroupsRequest(*identitystore.IsMemberInGroupsInput) (*request.Request, *identitystore.IsMemberInGroupsOutput) + + ListGroupMemberships(*identitystore.ListGroupMembershipsInput) (*identitystore.ListGroupMembershipsOutput, error) + ListGroupMembershipsWithContext(aws.Context, *identitystore.ListGroupMembershipsInput, ...request.Option) (*identitystore.ListGroupMembershipsOutput, error) + ListGroupMembershipsRequest(*identitystore.ListGroupMembershipsInput) (*request.Request, *identitystore.ListGroupMembershipsOutput) + + ListGroupMembershipsPages(*identitystore.ListGroupMembershipsInput, func(*identitystore.ListGroupMembershipsOutput, bool) bool) error + ListGroupMembershipsPagesWithContext(aws.Context, *identitystore.ListGroupMembershipsInput, func(*identitystore.ListGroupMembershipsOutput, bool) bool, ...request.Option) error + + ListGroupMembershipsForMember(*identitystore.ListGroupMembershipsForMemberInput) (*identitystore.ListGroupMembershipsForMemberOutput, error) + ListGroupMembershipsForMemberWithContext(aws.Context, *identitystore.ListGroupMembershipsForMemberInput, ...request.Option) (*identitystore.ListGroupMembershipsForMemberOutput, error) + ListGroupMembershipsForMemberRequest(*identitystore.ListGroupMembershipsForMemberInput) (*request.Request, *identitystore.ListGroupMembershipsForMemberOutput) + + ListGroupMembershipsForMemberPages(*identitystore.ListGroupMembershipsForMemberInput, func(*identitystore.ListGroupMembershipsForMemberOutput, bool) bool) error + ListGroupMembershipsForMemberPagesWithContext(aws.Context, *identitystore.ListGroupMembershipsForMemberInput, func(*identitystore.ListGroupMembershipsForMemberOutput, bool) bool, ...request.Option) error + ListGroups(*identitystore.ListGroupsInput) (*identitystore.ListGroupsOutput, error) ListGroupsWithContext(aws.Context, *identitystore.ListGroupsInput, ...request.Option) (*identitystore.ListGroupsOutput, error) ListGroupsRequest(*identitystore.ListGroupsInput) (*request.Request, *identitystore.ListGroupsOutput) @@ -81,6 +139,14 @@ type IdentityStoreAPI interface { ListUsersPages(*identitystore.ListUsersInput, func(*identitystore.ListUsersOutput, bool) bool) error ListUsersPagesWithContext(aws.Context, *identitystore.ListUsersInput, func(*identitystore.ListUsersOutput, bool) bool, ...request.Option) error + + UpdateGroup(*identitystore.UpdateGroupInput) (*identitystore.UpdateGroupOutput, error) + UpdateGroupWithContext(aws.Context, *identitystore.UpdateGroupInput, ...request.Option) (*identitystore.UpdateGroupOutput, error) + UpdateGroupRequest(*identitystore.UpdateGroupInput) (*request.Request, *identitystore.UpdateGroupOutput) + + UpdateUser(*identitystore.UpdateUserInput) (*identitystore.UpdateUserOutput, error) + UpdateUserWithContext(aws.Context, *identitystore.UpdateUserInput, ...request.Option) (*identitystore.UpdateUserOutput, error) + UpdateUserRequest(*identitystore.UpdateUserInput) (*request.Request, *identitystore.UpdateUserOutput) } var _ IdentityStoreAPI = (*identitystore.IdentityStore)(nil) diff --git a/service/iotthingsgraph/api.go b/service/iotthingsgraph/api.go index c378b94f3c..d215dbe791 100644 --- a/service/iotthingsgraph/api.go +++ b/service/iotthingsgraph/api.go @@ -38,7 +38,12 @@ const opAssociateEntityToThing = "AssociateEntityToThing" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/AssociateEntityToThing +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) AssociateEntityToThingRequest(input *AssociateEntityToThingInput) (req *request.Request, output *AssociateEntityToThingOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, AssociateEntityToThing, has been deprecated") + } op := &request.Operation{ Name: opAssociateEntityToThing, HTTPMethod: "POST", @@ -80,6 +85,8 @@ func (c *IoTThingsGraph) AssociateEntityToThingRequest(input *AssociateEntityToT // - ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/AssociateEntityToThing +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) AssociateEntityToThing(input *AssociateEntityToThingInput) (*AssociateEntityToThingOutput, error) { req, out := c.AssociateEntityToThingRequest(input) return out, req.Send() @@ -94,6 +101,8 @@ func (c *IoTThingsGraph) AssociateEntityToThing(input *AssociateEntityToThingInp // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) AssociateEntityToThingWithContext(ctx aws.Context, input *AssociateEntityToThingInput, opts ...request.Option) (*AssociateEntityToThingOutput, error) { req, out := c.AssociateEntityToThingRequest(input) req.SetContext(ctx) @@ -126,7 +135,12 @@ const opCreateFlowTemplate = "CreateFlowTemplate" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/CreateFlowTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) CreateFlowTemplateRequest(input *CreateFlowTemplateInput) (req *request.Request, output *CreateFlowTemplateOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, CreateFlowTemplate, has been deprecated") + } op := &request.Operation{ Name: opCreateFlowTemplate, HTTPMethod: "POST", @@ -170,6 +184,8 @@ func (c *IoTThingsGraph) CreateFlowTemplateRequest(input *CreateFlowTemplateInpu // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/CreateFlowTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) CreateFlowTemplate(input *CreateFlowTemplateInput) (*CreateFlowTemplateOutput, error) { req, out := c.CreateFlowTemplateRequest(input) return out, req.Send() @@ -184,6 +200,8 @@ func (c *IoTThingsGraph) CreateFlowTemplate(input *CreateFlowTemplateInput) (*Cr // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) CreateFlowTemplateWithContext(ctx aws.Context, input *CreateFlowTemplateInput, opts ...request.Option) (*CreateFlowTemplateOutput, error) { req, out := c.CreateFlowTemplateRequest(input) req.SetContext(ctx) @@ -216,7 +234,12 @@ const opCreateSystemInstance = "CreateSystemInstance" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/CreateSystemInstance +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) CreateSystemInstanceRequest(input *CreateSystemInstanceInput) (req *request.Request, output *CreateSystemInstanceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, CreateSystemInstance, has been deprecated") + } op := &request.Operation{ Name: opCreateSystemInstance, HTTPMethod: "POST", @@ -274,6 +297,8 @@ func (c *IoTThingsGraph) CreateSystemInstanceRequest(input *CreateSystemInstance // - LimitExceededException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/CreateSystemInstance +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) CreateSystemInstance(input *CreateSystemInstanceInput) (*CreateSystemInstanceOutput, error) { req, out := c.CreateSystemInstanceRequest(input) return out, req.Send() @@ -288,6 +313,8 @@ func (c *IoTThingsGraph) CreateSystemInstance(input *CreateSystemInstanceInput) // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) CreateSystemInstanceWithContext(ctx aws.Context, input *CreateSystemInstanceInput, opts ...request.Option) (*CreateSystemInstanceOutput, error) { req, out := c.CreateSystemInstanceRequest(input) req.SetContext(ctx) @@ -320,7 +347,12 @@ const opCreateSystemTemplate = "CreateSystemTemplate" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/CreateSystemTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) CreateSystemTemplateRequest(input *CreateSystemTemplateInput) (req *request.Request, output *CreateSystemTemplateOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, CreateSystemTemplate, has been deprecated") + } op := &request.Operation{ Name: opCreateSystemTemplate, HTTPMethod: "POST", @@ -360,6 +392,8 @@ func (c *IoTThingsGraph) CreateSystemTemplateRequest(input *CreateSystemTemplate // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/CreateSystemTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) CreateSystemTemplate(input *CreateSystemTemplateInput) (*CreateSystemTemplateOutput, error) { req, out := c.CreateSystemTemplateRequest(input) return out, req.Send() @@ -374,6 +408,8 @@ func (c *IoTThingsGraph) CreateSystemTemplate(input *CreateSystemTemplateInput) // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) CreateSystemTemplateWithContext(ctx aws.Context, input *CreateSystemTemplateInput, opts ...request.Option) (*CreateSystemTemplateOutput, error) { req, out := c.CreateSystemTemplateRequest(input) req.SetContext(ctx) @@ -406,7 +442,12 @@ const opDeleteFlowTemplate = "DeleteFlowTemplate" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteFlowTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteFlowTemplateRequest(input *DeleteFlowTemplateInput) (req *request.Request, output *DeleteFlowTemplateOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, DeleteFlowTemplate, has been deprecated") + } op := &request.Operation{ Name: opDeleteFlowTemplate, HTTPMethod: "POST", @@ -448,6 +489,8 @@ func (c *IoTThingsGraph) DeleteFlowTemplateRequest(input *DeleteFlowTemplateInpu // - ResourceInUseException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteFlowTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteFlowTemplate(input *DeleteFlowTemplateInput) (*DeleteFlowTemplateOutput, error) { req, out := c.DeleteFlowTemplateRequest(input) return out, req.Send() @@ -462,6 +505,8 @@ func (c *IoTThingsGraph) DeleteFlowTemplate(input *DeleteFlowTemplateInput) (*De // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteFlowTemplateWithContext(ctx aws.Context, input *DeleteFlowTemplateInput, opts ...request.Option) (*DeleteFlowTemplateOutput, error) { req, out := c.DeleteFlowTemplateRequest(input) req.SetContext(ctx) @@ -494,7 +539,12 @@ const opDeleteNamespace = "DeleteNamespace" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteNamespace +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteNamespaceRequest(input *DeleteNamespaceInput) (req *request.Request, output *DeleteNamespaceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, DeleteNamespace, has been deprecated") + } op := &request.Operation{ Name: opDeleteNamespace, HTTPMethod: "POST", @@ -514,7 +564,7 @@ func (c *IoTThingsGraph) DeleteNamespaceRequest(input *DeleteNamespaceInput) (re // // Deletes the specified namespace. This action deletes all of the entities // in the namespace. Delete the systems and flows that use entities in the namespace -// before performing this action. +// before performing this action. This action takes no request parameters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -530,6 +580,8 @@ func (c *IoTThingsGraph) DeleteNamespaceRequest(input *DeleteNamespaceInput) (re // - ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteNamespace +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteNamespace(input *DeleteNamespaceInput) (*DeleteNamespaceOutput, error) { req, out := c.DeleteNamespaceRequest(input) return out, req.Send() @@ -544,6 +596,8 @@ func (c *IoTThingsGraph) DeleteNamespace(input *DeleteNamespaceInput) (*DeleteNa // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteNamespaceWithContext(ctx aws.Context, input *DeleteNamespaceInput, opts ...request.Option) (*DeleteNamespaceOutput, error) { req, out := c.DeleteNamespaceRequest(input) req.SetContext(ctx) @@ -576,7 +630,12 @@ const opDeleteSystemInstance = "DeleteSystemInstance" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteSystemInstance +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteSystemInstanceRequest(input *DeleteSystemInstanceInput) (req *request.Request, output *DeleteSystemInstanceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, DeleteSystemInstance, has been deprecated") + } op := &request.Operation{ Name: opDeleteSystemInstance, HTTPMethod: "POST", @@ -619,6 +678,8 @@ func (c *IoTThingsGraph) DeleteSystemInstanceRequest(input *DeleteSystemInstance // - ResourceInUseException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteSystemInstance +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteSystemInstance(input *DeleteSystemInstanceInput) (*DeleteSystemInstanceOutput, error) { req, out := c.DeleteSystemInstanceRequest(input) return out, req.Send() @@ -633,6 +694,8 @@ func (c *IoTThingsGraph) DeleteSystemInstance(input *DeleteSystemInstanceInput) // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteSystemInstanceWithContext(ctx aws.Context, input *DeleteSystemInstanceInput, opts ...request.Option) (*DeleteSystemInstanceOutput, error) { req, out := c.DeleteSystemInstanceRequest(input) req.SetContext(ctx) @@ -665,7 +728,12 @@ const opDeleteSystemTemplate = "DeleteSystemTemplate" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteSystemTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteSystemTemplateRequest(input *DeleteSystemTemplateInput) (req *request.Request, output *DeleteSystemTemplateOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, DeleteSystemTemplate, has been deprecated") + } op := &request.Operation{ Name: opDeleteSystemTemplate, HTTPMethod: "POST", @@ -706,6 +774,8 @@ func (c *IoTThingsGraph) DeleteSystemTemplateRequest(input *DeleteSystemTemplate // - ResourceInUseException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteSystemTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteSystemTemplate(input *DeleteSystemTemplateInput) (*DeleteSystemTemplateOutput, error) { req, out := c.DeleteSystemTemplateRequest(input) return out, req.Send() @@ -720,6 +790,8 @@ func (c *IoTThingsGraph) DeleteSystemTemplate(input *DeleteSystemTemplateInput) // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeleteSystemTemplateWithContext(ctx aws.Context, input *DeleteSystemTemplateInput, opts ...request.Option) (*DeleteSystemTemplateOutput, error) { req, out := c.DeleteSystemTemplateRequest(input) req.SetContext(ctx) @@ -752,7 +824,12 @@ const opDeploySystemInstance = "DeploySystemInstance" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeploySystemInstance +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeploySystemInstanceRequest(input *DeploySystemInstanceInput) (req *request.Request, output *DeploySystemInstanceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, DeploySystemInstance, has been deprecated") + } op := &request.Operation{ Name: opDeploySystemInstance, HTTPMethod: "POST", @@ -808,6 +885,8 @@ func (c *IoTThingsGraph) DeploySystemInstanceRequest(input *DeploySystemInstance // - ResourceInUseException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeploySystemInstance +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeploySystemInstance(input *DeploySystemInstanceInput) (*DeploySystemInstanceOutput, error) { req, out := c.DeploySystemInstanceRequest(input) return out, req.Send() @@ -822,6 +901,8 @@ func (c *IoTThingsGraph) DeploySystemInstance(input *DeploySystemInstanceInput) // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeploySystemInstanceWithContext(ctx aws.Context, input *DeploySystemInstanceInput, opts ...request.Option) (*DeploySystemInstanceOutput, error) { req, out := c.DeploySystemInstanceRequest(input) req.SetContext(ctx) @@ -854,7 +935,12 @@ const opDeprecateFlowTemplate = "DeprecateFlowTemplate" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeprecateFlowTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeprecateFlowTemplateRequest(input *DeprecateFlowTemplateInput) (req *request.Request, output *DeprecateFlowTemplateOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, DeprecateFlowTemplate, has been deprecated") + } op := &request.Operation{ Name: opDeprecateFlowTemplate, HTTPMethod: "POST", @@ -895,6 +981,8 @@ func (c *IoTThingsGraph) DeprecateFlowTemplateRequest(input *DeprecateFlowTempla // - ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeprecateFlowTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeprecateFlowTemplate(input *DeprecateFlowTemplateInput) (*DeprecateFlowTemplateOutput, error) { req, out := c.DeprecateFlowTemplateRequest(input) return out, req.Send() @@ -909,6 +997,8 @@ func (c *IoTThingsGraph) DeprecateFlowTemplate(input *DeprecateFlowTemplateInput // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeprecateFlowTemplateWithContext(ctx aws.Context, input *DeprecateFlowTemplateInput, opts ...request.Option) (*DeprecateFlowTemplateOutput, error) { req, out := c.DeprecateFlowTemplateRequest(input) req.SetContext(ctx) @@ -941,7 +1031,12 @@ const opDeprecateSystemTemplate = "DeprecateSystemTemplate" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeprecateSystemTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeprecateSystemTemplateRequest(input *DeprecateSystemTemplateInput) (req *request.Request, output *DeprecateSystemTemplateOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, DeprecateSystemTemplate, has been deprecated") + } op := &request.Operation{ Name: opDeprecateSystemTemplate, HTTPMethod: "POST", @@ -980,6 +1075,8 @@ func (c *IoTThingsGraph) DeprecateSystemTemplateRequest(input *DeprecateSystemTe // - ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeprecateSystemTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeprecateSystemTemplate(input *DeprecateSystemTemplateInput) (*DeprecateSystemTemplateOutput, error) { req, out := c.DeprecateSystemTemplateRequest(input) return out, req.Send() @@ -994,6 +1091,8 @@ func (c *IoTThingsGraph) DeprecateSystemTemplate(input *DeprecateSystemTemplateI // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DeprecateSystemTemplateWithContext(ctx aws.Context, input *DeprecateSystemTemplateInput, opts ...request.Option) (*DeprecateSystemTemplateOutput, error) { req, out := c.DeprecateSystemTemplateRequest(input) req.SetContext(ctx) @@ -1026,7 +1125,12 @@ const opDescribeNamespace = "DescribeNamespace" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DescribeNamespace +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DescribeNamespaceRequest(input *DescribeNamespaceInput) (req *request.Request, output *DescribeNamespaceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, DescribeNamespace, has been deprecated") + } op := &request.Operation{ Name: opDescribeNamespace, HTTPMethod: "POST", @@ -1065,6 +1169,8 @@ func (c *IoTThingsGraph) DescribeNamespaceRequest(input *DescribeNamespaceInput) // - ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DescribeNamespace +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DescribeNamespace(input *DescribeNamespaceInput) (*DescribeNamespaceOutput, error) { req, out := c.DescribeNamespaceRequest(input) return out, req.Send() @@ -1079,6 +1185,8 @@ func (c *IoTThingsGraph) DescribeNamespace(input *DescribeNamespaceInput) (*Desc // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DescribeNamespaceWithContext(ctx aws.Context, input *DescribeNamespaceInput, opts ...request.Option) (*DescribeNamespaceOutput, error) { req, out := c.DescribeNamespaceRequest(input) req.SetContext(ctx) @@ -1111,7 +1219,12 @@ const opDissociateEntityFromThing = "DissociateEntityFromThing" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DissociateEntityFromThing +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DissociateEntityFromThingRequest(input *DissociateEntityFromThingInput) (req *request.Request, output *DissociateEntityFromThingOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, DissociateEntityFromThing, has been deprecated") + } op := &request.Operation{ Name: opDissociateEntityFromThing, HTTPMethod: "POST", @@ -1152,6 +1265,8 @@ func (c *IoTThingsGraph) DissociateEntityFromThingRequest(input *DissociateEntit // - ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DissociateEntityFromThing +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DissociateEntityFromThing(input *DissociateEntityFromThingInput) (*DissociateEntityFromThingOutput, error) { req, out := c.DissociateEntityFromThingRequest(input) return out, req.Send() @@ -1166,6 +1281,8 @@ func (c *IoTThingsGraph) DissociateEntityFromThing(input *DissociateEntityFromTh // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) DissociateEntityFromThingWithContext(ctx aws.Context, input *DissociateEntityFromThingInput, opts ...request.Option) (*DissociateEntityFromThingOutput, error) { req, out := c.DissociateEntityFromThingRequest(input) req.SetContext(ctx) @@ -1198,7 +1315,12 @@ const opGetEntities = "GetEntities" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetEntities +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetEntitiesRequest(input *GetEntitiesInput) (req *request.Request, output *GetEntitiesOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, GetEntities, has been deprecated") + } op := &request.Operation{ Name: opGetEntities, HTTPMethod: "POST", @@ -1257,6 +1379,8 @@ func (c *IoTThingsGraph) GetEntitiesRequest(input *GetEntitiesInput) (req *reque // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetEntities +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetEntities(input *GetEntitiesInput) (*GetEntitiesOutput, error) { req, out := c.GetEntitiesRequest(input) return out, req.Send() @@ -1271,6 +1395,8 @@ func (c *IoTThingsGraph) GetEntities(input *GetEntitiesInput) (*GetEntitiesOutpu // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetEntitiesWithContext(ctx aws.Context, input *GetEntitiesInput, opts ...request.Option) (*GetEntitiesOutput, error) { req, out := c.GetEntitiesRequest(input) req.SetContext(ctx) @@ -1303,7 +1429,12 @@ const opGetFlowTemplate = "GetFlowTemplate" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetFlowTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetFlowTemplateRequest(input *GetFlowTemplateInput) (req *request.Request, output *GetFlowTemplateOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, GetFlowTemplate, has been deprecated") + } op := &request.Operation{ Name: opGetFlowTemplate, HTTPMethod: "POST", @@ -1342,6 +1473,8 @@ func (c *IoTThingsGraph) GetFlowTemplateRequest(input *GetFlowTemplateInput) (re // - ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetFlowTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetFlowTemplate(input *GetFlowTemplateInput) (*GetFlowTemplateOutput, error) { req, out := c.GetFlowTemplateRequest(input) return out, req.Send() @@ -1356,6 +1489,8 @@ func (c *IoTThingsGraph) GetFlowTemplate(input *GetFlowTemplateInput) (*GetFlowT // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetFlowTemplateWithContext(ctx aws.Context, input *GetFlowTemplateInput, opts ...request.Option) (*GetFlowTemplateOutput, error) { req, out := c.GetFlowTemplateRequest(input) req.SetContext(ctx) @@ -1388,7 +1523,12 @@ const opGetFlowTemplateRevisions = "GetFlowTemplateRevisions" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetFlowTemplateRevisions +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetFlowTemplateRevisionsRequest(input *GetFlowTemplateRevisionsInput) (req *request.Request, output *GetFlowTemplateRevisionsOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, GetFlowTemplateRevisions, has been deprecated") + } op := &request.Operation{ Name: opGetFlowTemplateRevisions, HTTPMethod: "POST", @@ -1435,6 +1575,8 @@ func (c *IoTThingsGraph) GetFlowTemplateRevisionsRequest(input *GetFlowTemplateR // - ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetFlowTemplateRevisions +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetFlowTemplateRevisions(input *GetFlowTemplateRevisionsInput) (*GetFlowTemplateRevisionsOutput, error) { req, out := c.GetFlowTemplateRevisionsRequest(input) return out, req.Send() @@ -1449,6 +1591,8 @@ func (c *IoTThingsGraph) GetFlowTemplateRevisions(input *GetFlowTemplateRevision // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetFlowTemplateRevisionsWithContext(ctx aws.Context, input *GetFlowTemplateRevisionsInput, opts ...request.Option) (*GetFlowTemplateRevisionsOutput, error) { req, out := c.GetFlowTemplateRevisionsRequest(input) req.SetContext(ctx) @@ -1472,6 +1616,8 @@ func (c *IoTThingsGraph) GetFlowTemplateRevisionsWithContext(ctx aws.Context, in // fmt.Println(page) // return pageNum <= 3 // }) +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetFlowTemplateRevisionsPages(input *GetFlowTemplateRevisionsInput, fn func(*GetFlowTemplateRevisionsOutput, bool) bool) error { return c.GetFlowTemplateRevisionsPagesWithContext(aws.BackgroundContext(), input, fn) } @@ -1483,6 +1629,8 @@ func (c *IoTThingsGraph) GetFlowTemplateRevisionsPages(input *GetFlowTemplateRev // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetFlowTemplateRevisionsPagesWithContext(ctx aws.Context, input *GetFlowTemplateRevisionsInput, fn func(*GetFlowTemplateRevisionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -1532,7 +1680,12 @@ const opGetNamespaceDeletionStatus = "GetNamespaceDeletionStatus" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetNamespaceDeletionStatus +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetNamespaceDeletionStatusRequest(input *GetNamespaceDeletionStatusInput) (req *request.Request, output *GetNamespaceDeletionStatusOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, GetNamespaceDeletionStatus, has been deprecated") + } op := &request.Operation{ Name: opGetNamespaceDeletionStatus, HTTPMethod: "POST", @@ -1568,6 +1721,8 @@ func (c *IoTThingsGraph) GetNamespaceDeletionStatusRequest(input *GetNamespaceDe // - ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetNamespaceDeletionStatus +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetNamespaceDeletionStatus(input *GetNamespaceDeletionStatusInput) (*GetNamespaceDeletionStatusOutput, error) { req, out := c.GetNamespaceDeletionStatusRequest(input) return out, req.Send() @@ -1582,6 +1737,8 @@ func (c *IoTThingsGraph) GetNamespaceDeletionStatus(input *GetNamespaceDeletionS // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetNamespaceDeletionStatusWithContext(ctx aws.Context, input *GetNamespaceDeletionStatusInput, opts ...request.Option) (*GetNamespaceDeletionStatusOutput, error) { req, out := c.GetNamespaceDeletionStatusRequest(input) req.SetContext(ctx) @@ -1614,7 +1771,12 @@ const opGetSystemInstance = "GetSystemInstance" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetSystemInstance +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemInstanceRequest(input *GetSystemInstanceInput) (req *request.Request, output *GetSystemInstanceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, GetSystemInstance, has been deprecated") + } op := &request.Operation{ Name: opGetSystemInstance, HTTPMethod: "POST", @@ -1652,6 +1814,8 @@ func (c *IoTThingsGraph) GetSystemInstanceRequest(input *GetSystemInstanceInput) // - ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetSystemInstance +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemInstance(input *GetSystemInstanceInput) (*GetSystemInstanceOutput, error) { req, out := c.GetSystemInstanceRequest(input) return out, req.Send() @@ -1666,6 +1830,8 @@ func (c *IoTThingsGraph) GetSystemInstance(input *GetSystemInstanceInput) (*GetS // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemInstanceWithContext(ctx aws.Context, input *GetSystemInstanceInput, opts ...request.Option) (*GetSystemInstanceOutput, error) { req, out := c.GetSystemInstanceRequest(input) req.SetContext(ctx) @@ -1698,7 +1864,12 @@ const opGetSystemTemplate = "GetSystemTemplate" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetSystemTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemTemplateRequest(input *GetSystemTemplateInput) (req *request.Request, output *GetSystemTemplateOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, GetSystemTemplate, has been deprecated") + } op := &request.Operation{ Name: opGetSystemTemplate, HTTPMethod: "POST", @@ -1736,6 +1907,8 @@ func (c *IoTThingsGraph) GetSystemTemplateRequest(input *GetSystemTemplateInput) // - ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetSystemTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemTemplate(input *GetSystemTemplateInput) (*GetSystemTemplateOutput, error) { req, out := c.GetSystemTemplateRequest(input) return out, req.Send() @@ -1750,6 +1923,8 @@ func (c *IoTThingsGraph) GetSystemTemplate(input *GetSystemTemplateInput) (*GetS // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemTemplateWithContext(ctx aws.Context, input *GetSystemTemplateInput, opts ...request.Option) (*GetSystemTemplateOutput, error) { req, out := c.GetSystemTemplateRequest(input) req.SetContext(ctx) @@ -1782,7 +1957,12 @@ const opGetSystemTemplateRevisions = "GetSystemTemplateRevisions" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetSystemTemplateRevisions +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemTemplateRevisionsRequest(input *GetSystemTemplateRevisionsInput) (req *request.Request, output *GetSystemTemplateRevisionsOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, GetSystemTemplateRevisions, has been deprecated") + } op := &request.Operation{ Name: opGetSystemTemplateRevisions, HTTPMethod: "POST", @@ -1829,6 +2009,8 @@ func (c *IoTThingsGraph) GetSystemTemplateRevisionsRequest(input *GetSystemTempl // - ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetSystemTemplateRevisions +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemTemplateRevisions(input *GetSystemTemplateRevisionsInput) (*GetSystemTemplateRevisionsOutput, error) { req, out := c.GetSystemTemplateRevisionsRequest(input) return out, req.Send() @@ -1843,6 +2025,8 @@ func (c *IoTThingsGraph) GetSystemTemplateRevisions(input *GetSystemTemplateRevi // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemTemplateRevisionsWithContext(ctx aws.Context, input *GetSystemTemplateRevisionsInput, opts ...request.Option) (*GetSystemTemplateRevisionsOutput, error) { req, out := c.GetSystemTemplateRevisionsRequest(input) req.SetContext(ctx) @@ -1866,6 +2050,8 @@ func (c *IoTThingsGraph) GetSystemTemplateRevisionsWithContext(ctx aws.Context, // fmt.Println(page) // return pageNum <= 3 // }) +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemTemplateRevisionsPages(input *GetSystemTemplateRevisionsInput, fn func(*GetSystemTemplateRevisionsOutput, bool) bool) error { return c.GetSystemTemplateRevisionsPagesWithContext(aws.BackgroundContext(), input, fn) } @@ -1877,6 +2063,8 @@ func (c *IoTThingsGraph) GetSystemTemplateRevisionsPages(input *GetSystemTemplat // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetSystemTemplateRevisionsPagesWithContext(ctx aws.Context, input *GetSystemTemplateRevisionsInput, fn func(*GetSystemTemplateRevisionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -1926,7 +2114,12 @@ const opGetUploadStatus = "GetUploadStatus" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetUploadStatus +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetUploadStatusRequest(input *GetUploadStatusInput) (req *request.Request, output *GetUploadStatusOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, GetUploadStatus, has been deprecated") + } op := &request.Operation{ Name: opGetUploadStatus, HTTPMethod: "POST", @@ -1964,6 +2157,8 @@ func (c *IoTThingsGraph) GetUploadStatusRequest(input *GetUploadStatusInput) (re // - ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetUploadStatus +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetUploadStatus(input *GetUploadStatusInput) (*GetUploadStatusOutput, error) { req, out := c.GetUploadStatusRequest(input) return out, req.Send() @@ -1978,6 +2173,8 @@ func (c *IoTThingsGraph) GetUploadStatus(input *GetUploadStatusInput) (*GetUploa // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) GetUploadStatusWithContext(ctx aws.Context, input *GetUploadStatusInput, opts ...request.Option) (*GetUploadStatusOutput, error) { req, out := c.GetUploadStatusRequest(input) req.SetContext(ctx) @@ -2010,7 +2207,12 @@ const opListFlowExecutionMessages = "ListFlowExecutionMessages" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/ListFlowExecutionMessages +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) ListFlowExecutionMessagesRequest(input *ListFlowExecutionMessagesInput) (req *request.Request, output *ListFlowExecutionMessagesOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, ListFlowExecutionMessages, has been deprecated") + } op := &request.Operation{ Name: opListFlowExecutionMessages, HTTPMethod: "POST", @@ -2055,6 +2257,8 @@ func (c *IoTThingsGraph) ListFlowExecutionMessagesRequest(input *ListFlowExecuti // - ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/ListFlowExecutionMessages +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) ListFlowExecutionMessages(input *ListFlowExecutionMessagesInput) (*ListFlowExecutionMessagesOutput, error) { req, out := c.ListFlowExecutionMessagesRequest(input) return out, req.Send() @@ -2069,6 +2273,8 @@ func (c *IoTThingsGraph) ListFlowExecutionMessages(input *ListFlowExecutionMessa // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) ListFlowExecutionMessagesWithContext(ctx aws.Context, input *ListFlowExecutionMessagesInput, opts ...request.Option) (*ListFlowExecutionMessagesOutput, error) { req, out := c.ListFlowExecutionMessagesRequest(input) req.SetContext(ctx) @@ -2092,6 +2298,8 @@ func (c *IoTThingsGraph) ListFlowExecutionMessagesWithContext(ctx aws.Context, i // fmt.Println(page) // return pageNum <= 3 // }) +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) ListFlowExecutionMessagesPages(input *ListFlowExecutionMessagesInput, fn func(*ListFlowExecutionMessagesOutput, bool) bool) error { return c.ListFlowExecutionMessagesPagesWithContext(aws.BackgroundContext(), input, fn) } @@ -2103,6 +2311,8 @@ func (c *IoTThingsGraph) ListFlowExecutionMessagesPages(input *ListFlowExecution // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) ListFlowExecutionMessagesPagesWithContext(ctx aws.Context, input *ListFlowExecutionMessagesInput, fn func(*ListFlowExecutionMessagesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -2152,7 +2362,12 @@ const opListTagsForResource = "ListTagsForResource" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/ListTagsForResource +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, ListTagsForResource, has been deprecated") + } op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "POST", @@ -2196,6 +2411,8 @@ func (c *IoTThingsGraph) ListTagsForResourceRequest(input *ListTagsForResourceIn // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/ListTagsForResource +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() @@ -2210,6 +2427,8 @@ func (c *IoTThingsGraph) ListTagsForResource(input *ListTagsForResourceInput) (* // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) @@ -2233,6 +2452,8 @@ func (c *IoTThingsGraph) ListTagsForResourceWithContext(ctx aws.Context, input * // fmt.Println(page) // return pageNum <= 3 // }) +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) ListTagsForResourcePages(input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool) error { return c.ListTagsForResourcePagesWithContext(aws.BackgroundContext(), input, fn) } @@ -2244,6 +2465,8 @@ func (c *IoTThingsGraph) ListTagsForResourcePages(input *ListTagsForResourceInpu // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) ListTagsForResourcePagesWithContext(ctx aws.Context, input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -2293,7 +2516,12 @@ const opSearchEntities = "SearchEntities" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchEntities +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchEntitiesRequest(input *SearchEntitiesInput) (req *request.Request, output *SearchEntitiesOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, SearchEntities, has been deprecated") + } op := &request.Operation{ Name: opSearchEntities, HTTPMethod: "POST", @@ -2336,6 +2564,8 @@ func (c *IoTThingsGraph) SearchEntitiesRequest(input *SearchEntitiesInput) (req // - ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchEntities +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchEntities(input *SearchEntitiesInput) (*SearchEntitiesOutput, error) { req, out := c.SearchEntitiesRequest(input) return out, req.Send() @@ -2350,6 +2580,8 @@ func (c *IoTThingsGraph) SearchEntities(input *SearchEntitiesInput) (*SearchEnti // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchEntitiesWithContext(ctx aws.Context, input *SearchEntitiesInput, opts ...request.Option) (*SearchEntitiesOutput, error) { req, out := c.SearchEntitiesRequest(input) req.SetContext(ctx) @@ -2373,6 +2605,8 @@ func (c *IoTThingsGraph) SearchEntitiesWithContext(ctx aws.Context, input *Searc // fmt.Println(page) // return pageNum <= 3 // }) +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchEntitiesPages(input *SearchEntitiesInput, fn func(*SearchEntitiesOutput, bool) bool) error { return c.SearchEntitiesPagesWithContext(aws.BackgroundContext(), input, fn) } @@ -2384,6 +2618,8 @@ func (c *IoTThingsGraph) SearchEntitiesPages(input *SearchEntitiesInput, fn func // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchEntitiesPagesWithContext(ctx aws.Context, input *SearchEntitiesInput, fn func(*SearchEntitiesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -2433,7 +2669,12 @@ const opSearchFlowExecutions = "SearchFlowExecutions" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchFlowExecutions +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchFlowExecutionsRequest(input *SearchFlowExecutionsInput) (req *request.Request, output *SearchFlowExecutionsOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, SearchFlowExecutions, has been deprecated") + } op := &request.Operation{ Name: opSearchFlowExecutions, HTTPMethod: "POST", @@ -2477,6 +2718,8 @@ func (c *IoTThingsGraph) SearchFlowExecutionsRequest(input *SearchFlowExecutions // - ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchFlowExecutions +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchFlowExecutions(input *SearchFlowExecutionsInput) (*SearchFlowExecutionsOutput, error) { req, out := c.SearchFlowExecutionsRequest(input) return out, req.Send() @@ -2491,6 +2734,8 @@ func (c *IoTThingsGraph) SearchFlowExecutions(input *SearchFlowExecutionsInput) // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchFlowExecutionsWithContext(ctx aws.Context, input *SearchFlowExecutionsInput, opts ...request.Option) (*SearchFlowExecutionsOutput, error) { req, out := c.SearchFlowExecutionsRequest(input) req.SetContext(ctx) @@ -2514,6 +2759,8 @@ func (c *IoTThingsGraph) SearchFlowExecutionsWithContext(ctx aws.Context, input // fmt.Println(page) // return pageNum <= 3 // }) +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchFlowExecutionsPages(input *SearchFlowExecutionsInput, fn func(*SearchFlowExecutionsOutput, bool) bool) error { return c.SearchFlowExecutionsPagesWithContext(aws.BackgroundContext(), input, fn) } @@ -2525,6 +2772,8 @@ func (c *IoTThingsGraph) SearchFlowExecutionsPages(input *SearchFlowExecutionsIn // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchFlowExecutionsPagesWithContext(ctx aws.Context, input *SearchFlowExecutionsInput, fn func(*SearchFlowExecutionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -2574,7 +2823,12 @@ const opSearchFlowTemplates = "SearchFlowTemplates" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchFlowTemplates +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchFlowTemplatesRequest(input *SearchFlowTemplatesInput) (req *request.Request, output *SearchFlowTemplatesOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, SearchFlowTemplates, has been deprecated") + } op := &request.Operation{ Name: opSearchFlowTemplates, HTTPMethod: "POST", @@ -2616,6 +2870,8 @@ func (c *IoTThingsGraph) SearchFlowTemplatesRequest(input *SearchFlowTemplatesIn // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchFlowTemplates +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchFlowTemplates(input *SearchFlowTemplatesInput) (*SearchFlowTemplatesOutput, error) { req, out := c.SearchFlowTemplatesRequest(input) return out, req.Send() @@ -2630,6 +2886,8 @@ func (c *IoTThingsGraph) SearchFlowTemplates(input *SearchFlowTemplatesInput) (* // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchFlowTemplatesWithContext(ctx aws.Context, input *SearchFlowTemplatesInput, opts ...request.Option) (*SearchFlowTemplatesOutput, error) { req, out := c.SearchFlowTemplatesRequest(input) req.SetContext(ctx) @@ -2653,6 +2911,8 @@ func (c *IoTThingsGraph) SearchFlowTemplatesWithContext(ctx aws.Context, input * // fmt.Println(page) // return pageNum <= 3 // }) +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchFlowTemplatesPages(input *SearchFlowTemplatesInput, fn func(*SearchFlowTemplatesOutput, bool) bool) error { return c.SearchFlowTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) } @@ -2664,6 +2924,8 @@ func (c *IoTThingsGraph) SearchFlowTemplatesPages(input *SearchFlowTemplatesInpu // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchFlowTemplatesPagesWithContext(ctx aws.Context, input *SearchFlowTemplatesInput, fn func(*SearchFlowTemplatesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -2713,7 +2975,12 @@ const opSearchSystemInstances = "SearchSystemInstances" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchSystemInstances +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchSystemInstancesRequest(input *SearchSystemInstancesInput) (req *request.Request, output *SearchSystemInstancesOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, SearchSystemInstances, has been deprecated") + } op := &request.Operation{ Name: opSearchSystemInstances, HTTPMethod: "POST", @@ -2755,6 +3022,8 @@ func (c *IoTThingsGraph) SearchSystemInstancesRequest(input *SearchSystemInstanc // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchSystemInstances +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchSystemInstances(input *SearchSystemInstancesInput) (*SearchSystemInstancesOutput, error) { req, out := c.SearchSystemInstancesRequest(input) return out, req.Send() @@ -2769,6 +3038,8 @@ func (c *IoTThingsGraph) SearchSystemInstances(input *SearchSystemInstancesInput // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchSystemInstancesWithContext(ctx aws.Context, input *SearchSystemInstancesInput, opts ...request.Option) (*SearchSystemInstancesOutput, error) { req, out := c.SearchSystemInstancesRequest(input) req.SetContext(ctx) @@ -2792,6 +3063,8 @@ func (c *IoTThingsGraph) SearchSystemInstancesWithContext(ctx aws.Context, input // fmt.Println(page) // return pageNum <= 3 // }) +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchSystemInstancesPages(input *SearchSystemInstancesInput, fn func(*SearchSystemInstancesOutput, bool) bool) error { return c.SearchSystemInstancesPagesWithContext(aws.BackgroundContext(), input, fn) } @@ -2803,6 +3076,8 @@ func (c *IoTThingsGraph) SearchSystemInstancesPages(input *SearchSystemInstances // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchSystemInstancesPagesWithContext(ctx aws.Context, input *SearchSystemInstancesInput, fn func(*SearchSystemInstancesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -2852,7 +3127,12 @@ const opSearchSystemTemplates = "SearchSystemTemplates" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchSystemTemplates +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchSystemTemplatesRequest(input *SearchSystemTemplatesInput) (req *request.Request, output *SearchSystemTemplatesOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, SearchSystemTemplates, has been deprecated") + } op := &request.Operation{ Name: opSearchSystemTemplates, HTTPMethod: "POST", @@ -2896,6 +3176,8 @@ func (c *IoTThingsGraph) SearchSystemTemplatesRequest(input *SearchSystemTemplat // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchSystemTemplates +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchSystemTemplates(input *SearchSystemTemplatesInput) (*SearchSystemTemplatesOutput, error) { req, out := c.SearchSystemTemplatesRequest(input) return out, req.Send() @@ -2910,6 +3192,8 @@ func (c *IoTThingsGraph) SearchSystemTemplates(input *SearchSystemTemplatesInput // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchSystemTemplatesWithContext(ctx aws.Context, input *SearchSystemTemplatesInput, opts ...request.Option) (*SearchSystemTemplatesOutput, error) { req, out := c.SearchSystemTemplatesRequest(input) req.SetContext(ctx) @@ -2933,6 +3217,8 @@ func (c *IoTThingsGraph) SearchSystemTemplatesWithContext(ctx aws.Context, input // fmt.Println(page) // return pageNum <= 3 // }) +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchSystemTemplatesPages(input *SearchSystemTemplatesInput, fn func(*SearchSystemTemplatesOutput, bool) bool) error { return c.SearchSystemTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) } @@ -2944,6 +3230,8 @@ func (c *IoTThingsGraph) SearchSystemTemplatesPages(input *SearchSystemTemplates // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchSystemTemplatesPagesWithContext(ctx aws.Context, input *SearchSystemTemplatesInput, fn func(*SearchSystemTemplatesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -2993,7 +3281,12 @@ const opSearchThings = "SearchThings" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchThings +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchThingsRequest(input *SearchThingsInput) (req *request.Request, output *SearchThingsOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, SearchThings, has been deprecated") + } op := &request.Operation{ Name: opSearchThings, HTTPMethod: "POST", @@ -3045,6 +3338,8 @@ func (c *IoTThingsGraph) SearchThingsRequest(input *SearchThingsInput) (req *req // - ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchThings +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchThings(input *SearchThingsInput) (*SearchThingsOutput, error) { req, out := c.SearchThingsRequest(input) return out, req.Send() @@ -3059,6 +3354,8 @@ func (c *IoTThingsGraph) SearchThings(input *SearchThingsInput) (*SearchThingsOu // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchThingsWithContext(ctx aws.Context, input *SearchThingsInput, opts ...request.Option) (*SearchThingsOutput, error) { req, out := c.SearchThingsRequest(input) req.SetContext(ctx) @@ -3082,6 +3379,8 @@ func (c *IoTThingsGraph) SearchThingsWithContext(ctx aws.Context, input *SearchT // fmt.Println(page) // return pageNum <= 3 // }) +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchThingsPages(input *SearchThingsInput, fn func(*SearchThingsOutput, bool) bool) error { return c.SearchThingsPagesWithContext(aws.BackgroundContext(), input, fn) } @@ -3093,6 +3392,8 @@ func (c *IoTThingsGraph) SearchThingsPages(input *SearchThingsInput, fn func(*Se // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) SearchThingsPagesWithContext(ctx aws.Context, input *SearchThingsInput, fn func(*SearchThingsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -3142,7 +3443,12 @@ const opTagResource = "TagResource" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/TagResource +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, TagResource, has been deprecated") + } op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", @@ -3181,6 +3487,8 @@ func (c *IoTThingsGraph) TagResourceRequest(input *TagResourceInput) (req *reque // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/TagResource +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() @@ -3195,6 +3503,8 @@ func (c *IoTThingsGraph) TagResource(input *TagResourceInput) (*TagResourceOutpu // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) @@ -3227,7 +3537,12 @@ const opUndeploySystemInstance = "UndeploySystemInstance" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UndeploySystemInstance +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UndeploySystemInstanceRequest(input *UndeploySystemInstanceInput) (req *request.Request, output *UndeploySystemInstanceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, UndeploySystemInstance, has been deprecated") + } op := &request.Operation{ Name: opUndeploySystemInstance, HTTPMethod: "POST", @@ -3267,6 +3582,8 @@ func (c *IoTThingsGraph) UndeploySystemInstanceRequest(input *UndeploySystemInst // - ResourceInUseException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UndeploySystemInstance +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UndeploySystemInstance(input *UndeploySystemInstanceInput) (*UndeploySystemInstanceOutput, error) { req, out := c.UndeploySystemInstanceRequest(input) return out, req.Send() @@ -3281,6 +3598,8 @@ func (c *IoTThingsGraph) UndeploySystemInstance(input *UndeploySystemInstanceInp // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UndeploySystemInstanceWithContext(ctx aws.Context, input *UndeploySystemInstanceInput, opts ...request.Option) (*UndeploySystemInstanceOutput, error) { req, out := c.UndeploySystemInstanceRequest(input) req.SetContext(ctx) @@ -3313,7 +3632,12 @@ const opUntagResource = "UntagResource" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UntagResource +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, UntagResource, has been deprecated") + } op := &request.Operation{ Name: opUntagResource, HTTPMethod: "POST", @@ -3352,6 +3676,8 @@ func (c *IoTThingsGraph) UntagResourceRequest(input *UntagResourceInput) (req *r // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UntagResource +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() @@ -3366,6 +3692,8 @@ func (c *IoTThingsGraph) UntagResource(input *UntagResourceInput) (*UntagResourc // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) @@ -3398,7 +3726,12 @@ const opUpdateFlowTemplate = "UpdateFlowTemplate" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UpdateFlowTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UpdateFlowTemplateRequest(input *UpdateFlowTemplateInput) (req *request.Request, output *UpdateFlowTemplateOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, UpdateFlowTemplate, has been deprecated") + } op := &request.Operation{ Name: opUpdateFlowTemplate, HTTPMethod: "POST", @@ -3440,6 +3773,8 @@ func (c *IoTThingsGraph) UpdateFlowTemplateRequest(input *UpdateFlowTemplateInpu // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UpdateFlowTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UpdateFlowTemplate(input *UpdateFlowTemplateInput) (*UpdateFlowTemplateOutput, error) { req, out := c.UpdateFlowTemplateRequest(input) return out, req.Send() @@ -3454,6 +3789,8 @@ func (c *IoTThingsGraph) UpdateFlowTemplate(input *UpdateFlowTemplateInput) (*Up // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UpdateFlowTemplateWithContext(ctx aws.Context, input *UpdateFlowTemplateInput, opts ...request.Option) (*UpdateFlowTemplateOutput, error) { req, out := c.UpdateFlowTemplateRequest(input) req.SetContext(ctx) @@ -3486,7 +3823,12 @@ const opUpdateSystemTemplate = "UpdateSystemTemplate" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UpdateSystemTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UpdateSystemTemplateRequest(input *UpdateSystemTemplateInput) (req *request.Request, output *UpdateSystemTemplateOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, UpdateSystemTemplate, has been deprecated") + } op := &request.Operation{ Name: opUpdateSystemTemplate, HTTPMethod: "POST", @@ -3526,6 +3868,8 @@ func (c *IoTThingsGraph) UpdateSystemTemplateRequest(input *UpdateSystemTemplate // - InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UpdateSystemTemplate +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UpdateSystemTemplate(input *UpdateSystemTemplateInput) (*UpdateSystemTemplateOutput, error) { req, out := c.UpdateSystemTemplateRequest(input) return out, req.Send() @@ -3540,6 +3884,8 @@ func (c *IoTThingsGraph) UpdateSystemTemplate(input *UpdateSystemTemplateInput) // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UpdateSystemTemplateWithContext(ctx aws.Context, input *UpdateSystemTemplateInput, opts ...request.Option) (*UpdateSystemTemplateOutput, error) { req, out := c.UpdateSystemTemplateRequest(input) req.SetContext(ctx) @@ -3572,7 +3918,12 @@ const opUploadEntityDefinitions = "UploadEntityDefinitions" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UploadEntityDefinitions +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UploadEntityDefinitionsRequest(input *UploadEntityDefinitionsInput) (req *request.Request, output *UploadEntityDefinitionsOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, UploadEntityDefinitions, has been deprecated") + } op := &request.Operation{ Name: opUploadEntityDefinitions, HTTPMethod: "POST", @@ -3627,6 +3978,8 @@ func (c *IoTThingsGraph) UploadEntityDefinitionsRequest(input *UploadEntityDefin // - ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UploadEntityDefinitions +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UploadEntityDefinitions(input *UploadEntityDefinitionsInput) (*UploadEntityDefinitionsOutput, error) { req, out := c.UploadEntityDefinitionsRequest(input) return out, req.Send() @@ -3641,6 +3994,8 @@ func (c *IoTThingsGraph) UploadEntityDefinitions(input *UploadEntityDefinitionsI // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: since: 2022-08-30 func (c *IoTThingsGraph) UploadEntityDefinitionsWithContext(ctx aws.Context, input *UploadEntityDefinitionsInput, opts ...request.Option) (*UploadEntityDefinitionsOutput, error) { req, out := c.UploadEntityDefinitionsRequest(input) req.SetContext(ctx) diff --git a/service/iotthingsgraph/doc.go b/service/iotthingsgraph/doc.go index 0ab1e5d932..cb74af703b 100644 --- a/service/iotthingsgraph/doc.go +++ b/service/iotthingsgraph/doc.go @@ -12,6 +12,8 @@ // For more information about how AWS IoT Things Graph works, see the User Guide // (https://docs.aws.amazon.com/thingsgraph/latest/ug/iot-tg-whatis.html). // +// The AWS IoT Things Graph service is discontinued. +// // See https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06 for more information on this service. // // See iotthingsgraph package documentation for more information. diff --git a/service/ivs/api.go b/service/ivs/api.go index aba09cd23b..3f46a8df13 100644 --- a/service/ivs/api.go +++ b/service/ivs/api.go @@ -3595,6 +3595,11 @@ type CreateRecordingConfigurationInput struct { // Recording-configuration name. The value does not need to be unique. Name *string `locationName:"name" type:"string"` + // If a broadcast disconnects and then reconnects within the specified interval, + // the multiple streams will be considered a single broadcast and merged together. + // Default: 0. + RecordingReconnectWindowSeconds *int64 `locationName:"recordingReconnectWindowSeconds" type:"integer"` + // Array of 1-50 maps, each of the form string:string (key:value). See Tagging // Amazon Web Services Resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) // for more information, including restrictions that apply to tags and "Tag @@ -3661,6 +3666,12 @@ func (s *CreateRecordingConfigurationInput) SetName(v string) *CreateRecordingCo return s } +// SetRecordingReconnectWindowSeconds sets the RecordingReconnectWindowSeconds field's value. +func (s *CreateRecordingConfigurationInput) SetRecordingReconnectWindowSeconds(v int64) *CreateRecordingConfigurationInput { + s.RecordingReconnectWindowSeconds = &v + return s +} + // SetTags sets the Tags field's value. func (s *CreateRecordingConfigurationInput) SetTags(v map[string]*string) *CreateRecordingConfigurationInput { s.Tags = v @@ -5844,6 +5855,11 @@ type RecordingConfiguration struct { // Recording-configuration name. The value does not need to be unique. Name *string `locationName:"name" type:"string"` + // If a broadcast disconnects and then reconnects within the specified interval, + // the multiple streams will be considered a single broadcast and merged together. + // Default: 0. + RecordingReconnectWindowSeconds *int64 `locationName:"recordingReconnectWindowSeconds" type:"integer"` + // Indicates the current state of the recording configuration. When the state // is ACTIVE, the configuration is ready for recording a channel stream. // @@ -5899,6 +5915,12 @@ func (s *RecordingConfiguration) SetName(v string) *RecordingConfiguration { return s } +// SetRecordingReconnectWindowSeconds sets the RecordingReconnectWindowSeconds field's value. +func (s *RecordingConfiguration) SetRecordingReconnectWindowSeconds(v int64) *RecordingConfiguration { + s.RecordingReconnectWindowSeconds = &v + return s +} + // SetState sets the State field's value. func (s *RecordingConfiguration) SetState(v string) *RecordingConfiguration { s.State = &v diff --git a/service/rdsdataservice/api.go b/service/rdsdataservice/api.go index 7ae3e7231e..8a5166f085 100644 --- a/service/rdsdataservice/api.go +++ b/service/rdsdataservice/api.go @@ -168,13 +168,15 @@ func (c *RDSDataService) BeginTransactionRequest(input *BeginTransactionInput) ( // // Starts a SQL transaction. // -//

A transaction can run for a maximum of 24 hours. A transaction -// is terminated and rolled back automatically after 24 hours.

A transaction -// times out if no calls use its transaction ID in three minutes. If a transaction -// times out before it's committed, it's rolled back automatically.

DDL -// statements inside a transaction cause an implicit commit. We recommend -// that you run each DDL statement in a separate ExecuteStatement -// call with continueAfterTimeout enabled.

+// A transaction can run for a maximum of 24 hours. A transaction is terminated +// and rolled back automatically after 24 hours. +// +// A transaction times out if no calls use its transaction ID in three minutes. +// If a transaction times out before it's committed, it's rolled back automatically. +// +// DDL statements inside a transaction cause an implicit commit. We recommend +// that you run each DDL statement in a separate ExecuteStatement call with +// continueAfterTimeout enabled. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2472,9 +2474,9 @@ func (s *SqlParameter) SetValue(v *Field) *SqlParameter { // The result of a SQL statement. // -//

This data structure is only used with the deprecated ExecuteSql +//

This data structure is only used with the deprecated ExecuteSql // operation. Use the BatchExecuteStatement or ExecuteStatement -// operation instead.

+// operation instead.

type SqlStatementResult struct { _ struct{} `type:"structure"` @@ -2652,9 +2654,9 @@ func (s *UpdateResult) SetGeneratedFields(v []*Field) *UpdateResult { // Contains the value of a column. // -//

This data structure is only used with the deprecated ExecuteSql +//

This data structure is only used with the deprecated ExecuteSql // operation. Use the BatchExecuteStatement or ExecuteStatement -// operation instead.

+// operation instead.

type Value struct { _ struct{} `type:"structure"` diff --git a/service/rdsdataservice/doc.go b/service/rdsdataservice/doc.go index 3b3fb1e336..891e49d220 100644 --- a/service/rdsdataservice/doc.go +++ b/service/rdsdataservice/doc.go @@ -4,8 +4,10 @@ // requests to AWS RDS DataService. // // Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora -// Serverless DB cluster. To run these statements, you work with the Data Service -// API. +// Serverless v1 DB cluster. To run these statements, you work with the Data +// Service API. +// +// The Data Service API isn't supported on Amazon Aurora Serverless v2 DB clusters. // // For more information about the Data Service API, see Using the Data API (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html) // in the Amazon Aurora User Guide. diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index 93fbdd23b7..8ecadba194 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -3689,7 +3689,7 @@ func (c *SageMaker) CreatePresignedDomainUrlRequest(input *CreatePresignedDomain // Domain's Amazon Elastic File System (EFS) volume. This operation can only // be called when the authentication mode equals IAM. // -// The IAM role or user used to call this API defines the permissions to access +// The IAM role or user passed to this API defines the permissions to access // the app. Once the presigned URL is created, no additional permission is required // to access this URL. IAM authorization policies for this API are also enforced // for every HTTP request and WebSocket frame that attempts to connect to the @@ -4554,10 +4554,10 @@ func (c *SageMaker) CreateUserProfileRequest(input *CreateUserProfileInput) (req // domain, and is the main way to reference a "person" for the purposes of sharing, // reporting, and other user-oriented features. This entity is created when // a user onboards to Amazon SageMaker Studio. If an administrator invites a -// person by email or imports them from SSO, a user profile is automatically -// created. A user profile is the primary holder of settings for an individual -// user and has a reference to the user's private Amazon Elastic File System -// (EFS) home directory. +// person by email or imports them from Amazon Web Services SSO, a user profile +// is automatically created. A user profile is the primary holder of settings +// for an individual user and has a reference to the user's private Amazon Elastic +// File System (EFS) home directory. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5599,9 +5599,9 @@ func (c *SageMaker) DeleteDomainRequest(input *DeleteDomainInput) (req *request. // DeleteDomain API operation for Amazon SageMaker Service. // // Used to delete a domain. If you onboarded with IAM mode, you will need to -// delete your domain to onboard again using SSO. Use with caution. All of the -// members of the domain will lose access to their EFS volume, including data, -// notebooks, and other artifacts. +// delete your domain to onboard again using Amazon Web Services SSO. Use with +// caution. All of the members of the domain will lose access to their EFS volume, +// including data, notebooks, and other artifacts. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -28126,9 +28126,9 @@ type AutoMLJobCompletionCriteria struct { // The maximum number of times a training job is allowed to run. MaxCandidates *int64 `min:"1" type:"integer"` - // The maximum time, in seconds, that each training job is allowed to run as - // part of a hyperparameter tuning job. For more information, see the used by - // the action. + // The maximum time, in seconds, that each training job executed inside hyperparameter + // tuning is allowed to run as part of a hyperparameter tuning job. For more + // information, see the used by the action. MaxRuntimePerTrainingJobInSeconds *int64 `min:"1" type:"integer"` } @@ -39716,15 +39716,16 @@ type CreateUserProfileInput struct { DomainId *string `type:"string" required:"true"` // A specifier for the type of value specified in SingleSignOnUserValue. Currently, - // the only supported value is "UserName". If the Domain's AuthMode is SSO, - // this field is required. If the Domain's AuthMode is not SSO, this field cannot - // be specified. + // the only supported value is "UserName". If the Domain's AuthMode is Amazon + // Web Services SSO, this field is required. If the Domain's AuthMode is not + // Amazon Web Services SSO, this field cannot be specified. SingleSignOnUserIdentifier *string `type:"string"` // The username of the associated Amazon Web Services Single Sign-On User for - // this UserProfile. If the Domain's AuthMode is SSO, this field is required, - // and must match a valid username of a user in your directory. If the Domain's - // AuthMode is not SSO, this field cannot be specified. + // this UserProfile. If the Domain's AuthMode is Amazon Web Services SSO, this + // field is required, and must match a valid username of a user in your directory. + // If the Domain's AuthMode is not Amazon Web Services SSO, this field cannot + // be specified. SingleSignOnUserValue *string `type:"string"` // Each tag consists of a key and an optional value. Tag keys must be unique @@ -47113,7 +47114,7 @@ type DescribeDomainOutput struct { // apps and the RStudioServerPro app. SecurityGroupIdForDomainBoundary *string `type:"string"` - // The SSO managed application instance ID. + // The Amazon Web Services SSO managed application instance ID. SingleSignOnManagedApplicationInstanceId *string `type:"string"` // The status. @@ -54409,10 +54410,10 @@ type DescribeUserProfileOutput struct { // The last modified time. LastModifiedTime *time.Time `type:"timestamp"` - // The SSO user identifier. + // The Amazon Web Services SSO user identifier. SingleSignOnUserIdentifier *string `type:"string"` - // The SSO user value. + // The Amazon Web Services SSO user value. SingleSignOnUserValue *string `type:"string"` // The status. @@ -61446,7 +61447,7 @@ type HyperParameterTrainingJobDefinition struct { // The configuration for the hyperparameter tuning resources, including the // compute instances and storage volumes, used for training jobs launched by // the tuning job. By default, storage volumes hold model artifacts and incremental - // states. Choose File for TrainingInputMode in the AlgorithmSpecificationparameter + // states. Choose File for TrainingInputMode in the AlgorithmSpecification parameter // to additionally store training data in the storage volume (optional). HyperParameterTuningResourceConfig *HyperParameterTuningResourceConfig `type:"structure"` @@ -62439,7 +62440,7 @@ type HyperParameterTuningResourceConfig struct { // The AllocationStrategy controls the order in which multiple configurations // provided in InstanceConfigs are used. // - // If you only want to use a single InstanceConfig inside the HyperParameterTuningResourceConfig + // If you only want to use a single instance configuration inside the HyperParameterTuningResourceConfig // API, do not provide a value for InstanceConfigs. Instead, use InstanceType, // VolumeSizeInGB and InstanceCount. If you use InstanceConfigs, do not provide // values for InstanceType, VolumeSizeInGB or InstanceCount. @@ -62455,15 +62456,15 @@ type HyperParameterTuningResourceConfig struct { // for more information. InstanceType *string `type:"string" enum:"TrainingInstanceType"` - // A key used by AWS Key Management Service to encrypt data on the storage volume - // attached to the compute instances used to run the training job. You can use - // either of the following formats to specify a key. + // A key used by Amazon Web Services Key Management Service to encrypt data + // on the storage volume attached to the compute instances used to run the training + // job. You can use either of the following formats to specify a key. // // KMS Key ID: // // "1234abcd-12ab-34cd-56ef-1234567890ab" // - // Amazon Resource Name (ARN) of a AWS KMS key: + // Amazon Resource Name (ARN) of a KMS key: // // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" // @@ -62471,9 +62472,9 @@ type HyperParameterTuningResourceConfig struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssd-instance-store.html) // storage volumes. If you choose one of these instance types, you cannot request // a VolumeKmsKeyId. For a list of instance types that use local storage, see - // instance store volumes (https://aws.amazon.com/releasenotes/host-instance-storage-volumes-table/). - // For more information about AWS Key Management Service, see AWS KMS encryption - // (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-security-kms-permissions.html) + // instance store volumes (http://aws.amazon.com/releasenotes/host-instance-storage-volumes-table/). + // For more information about Amazon Web Services Key Management Service, see + // KMS encryption (https://docs.aws.amazon.com/sagemaker/latest/dg/sms-security-kms-permissions.html) // for more information. VolumeKmsKeyId *string `type:"string"` @@ -62485,7 +62486,7 @@ type HyperParameterTuningResourceConfig struct { // Some instance types have a fixed total local storage size. If you select // one of these instances for training, VolumeSizeInGB cannot be greater than // this total size. For a list of instance types with local instance storage - // and their sizes, see instance store volumes (https://aws.amazon.com/releasenotes/host-instance-storage-volumes-table/). + // and their sizes, see instance store volumes (http://aws.amazon.com/releasenotes/host-instance-storage-volumes-table/). // // SageMaker supports only the General Purpose SSD (gp2) (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volume-types.html) // storage volume type. @@ -84691,10 +84692,118 @@ func (s *RecommendationJobCompiledOutputConfig) SetS3OutputUri(v string) *Recomm return s } +// Specifies mandatory fields for running an Inference Recommender job directly +// in the CreateInferenceRecommendationsJob (https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateInferenceRecommendationsJob.html) +// API. The fields specified in ContainerConfig override the corresponding fields +// in the model package. Use ContainerConfig if you want to specify these fields +// for the recommendation job but don't want to edit them in your model package. +type RecommendationJobContainerConfig struct { + _ struct{} `type:"structure"` + + // The machine learning domain of the model and its components. + // + // Valid Values: COMPUTER_VISION | NATURAL_LANGUAGE_PROCESSING | MACHINE_LEARNING + Domain *string `type:"string"` + + // The machine learning framework of the container image. + // + // Valid Values: TENSORFLOW | PYTORCH | XGBOOST | SAGEMAKER-SCIKIT-LEARN + Framework *string `type:"string"` + + // The framework version of the container image. + FrameworkVersion *string `type:"string"` + + // The name of a pre-trained machine learning model benchmarked by Amazon SageMaker + // Inference Recommender that matches your model. + // + // Valid Values: efficientnetb7 | unet | xgboost | faster-rcnn-resnet101 | nasnetlarge + // | vgg16 | inception-v3 | mask-rcnn | sagemaker-scikit-learn | densenet201-gluon + // | resnet18v2-gluon | xception | densenet201 | yolov4 | resnet152 | bert-base-cased + // | xceptionV1-keras | resnet50 | retinanet + NearestModelName *string `type:"string"` + + // Specifies the SamplePayloadUrl and all other sample payload-related fields. + PayloadConfig *RecommendationJobPayloadConfig `type:"structure"` + + // A list of the instance types that are used to generate inferences in real-time. + SupportedInstanceTypes []*string `type:"list"` + + // The machine learning task that the model accomplishes. + // + // Valid Values: IMAGE_CLASSIFICATION | OBJECT_DETECTION | TEXT_GENERATION | + // IMAGE_SEGMENTATION | FILL_MASK | CLASSIFICATION | REGRESSION | OTHER + Task *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RecommendationJobContainerConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RecommendationJobContainerConfig) GoString() string { + return s.String() +} + +// SetDomain sets the Domain field's value. +func (s *RecommendationJobContainerConfig) SetDomain(v string) *RecommendationJobContainerConfig { + s.Domain = &v + return s +} + +// SetFramework sets the Framework field's value. +func (s *RecommendationJobContainerConfig) SetFramework(v string) *RecommendationJobContainerConfig { + s.Framework = &v + return s +} + +// SetFrameworkVersion sets the FrameworkVersion field's value. +func (s *RecommendationJobContainerConfig) SetFrameworkVersion(v string) *RecommendationJobContainerConfig { + s.FrameworkVersion = &v + return s +} + +// SetNearestModelName sets the NearestModelName field's value. +func (s *RecommendationJobContainerConfig) SetNearestModelName(v string) *RecommendationJobContainerConfig { + s.NearestModelName = &v + return s +} + +// SetPayloadConfig sets the PayloadConfig field's value. +func (s *RecommendationJobContainerConfig) SetPayloadConfig(v *RecommendationJobPayloadConfig) *RecommendationJobContainerConfig { + s.PayloadConfig = v + return s +} + +// SetSupportedInstanceTypes sets the SupportedInstanceTypes field's value. +func (s *RecommendationJobContainerConfig) SetSupportedInstanceTypes(v []*string) *RecommendationJobContainerConfig { + s.SupportedInstanceTypes = v + return s +} + +// SetTask sets the Task field's value. +func (s *RecommendationJobContainerConfig) SetTask(v string) *RecommendationJobContainerConfig { + s.Task = &v + return s +} + // The input configuration of the recommendation job. type RecommendationJobInputConfig struct { _ struct{} `type:"structure"` + // Specifies mandatory fields for running an Inference Recommender job. The + // fields specified in ContainerConfig override the corresponding fields in + // the model package. + ContainerConfig *RecommendationJobContainerConfig `type:"structure"` + // Specifies the endpoint configuration to use for a job. EndpointConfigurations []*EndpointInputConfiguration `min:"1" type:"list"` @@ -84799,6 +84908,12 @@ func (s *RecommendationJobInputConfig) Validate() error { return nil } +// SetContainerConfig sets the ContainerConfig field's value. +func (s *RecommendationJobInputConfig) SetContainerConfig(v *RecommendationJobContainerConfig) *RecommendationJobInputConfig { + s.ContainerConfig = v + return s +} + // SetEndpointConfigurations sets the EndpointConfigurations field's value. func (s *RecommendationJobInputConfig) SetEndpointConfigurations(v []*EndpointInputConfiguration) *RecommendationJobInputConfig { s.EndpointConfigurations = v @@ -84893,6 +85008,49 @@ func (s *RecommendationJobOutputConfig) SetKmsKeyId(v string) *RecommendationJob return s } +// The configuration for the payload for a recommendation job. +type RecommendationJobPayloadConfig struct { + _ struct{} `type:"structure"` + + // The Amazon Simple Storage Service (Amazon S3) path where the sample payload + // is stored. This path must point to a single gzip compressed tar archive (.tar.gz + // suffix). + SamplePayloadUrl *string `type:"string"` + + // The supported MIME types for the input data. + SupportedContentTypes []*string `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RecommendationJobPayloadConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RecommendationJobPayloadConfig) GoString() string { + return s.String() +} + +// SetSamplePayloadUrl sets the SamplePayloadUrl field's value. +func (s *RecommendationJobPayloadConfig) SetSamplePayloadUrl(v string) *RecommendationJobPayloadConfig { + s.SamplePayloadUrl = &v + return s +} + +// SetSupportedContentTypes sets the SupportedContentTypes field's value. +func (s *RecommendationJobPayloadConfig) SetSupportedContentTypes(v []*string) *RecommendationJobPayloadConfig { + s.SupportedContentTypes = v + return s +} + // Specifies the maximum number of jobs that can run in parallel and the maximum // number of jobs that can run. type RecommendationJobResourceLimit struct { @@ -85780,18 +85938,25 @@ type ResourceConfig struct { // want to store the training data in the ML storage volume, choose File as // the TrainingInputMode in the algorithm specification. // - // You must specify sufficient ML storage for your scenario. + // When using an ML instance with NVMe SSD volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssd-instance-store.html#nvme-ssd-volumes), + // SageMaker doesn't provision Amazon EBS General Purpose SSD (gp2) storage. + // Available storage is fixed to the NVMe-type instance's storage capacity. + // SageMaker configures storage paths for training datasets, checkpoints, model + // artifacts, and outputs to use the entire capacity of the instance storage. + // For example, ML instance families with the NVMe-type instance storage include + // ml.p4d, ml.g4dn, and ml.g5. // - // SageMaker supports only the General Purpose SSD (gp2) ML storage volume type. + // When using an ML instance with the EBS-only storage option and without instance + // storage, you must define the size of EBS volume through VolumeSizeInGB in + // the ResourceConfig API. For example, ML instance families that use EBS volumes + // include ml.c5 and ml.p2. // - // Certain Nitro-based instances include local storage with a fixed total size, - // dependent on the instance type. When using these instances for training, - // SageMaker mounts the local instance storage instead of Amazon EBS gp2 storage. - // You can't request a VolumeSizeInGB greater than the total size of the local - // instance storage. + // To look up instance types and their instance storage types and volumes, see + // Amazon EC2 Instance Types (http://aws.amazon.com/ec2/instance-types/). // - // For a list of instance types that support local instance storage, including - // the total size per instance type, see Instance Store Volumes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes). + // To find the default local paths defined by the SageMaker training platform, + // see Amazon SageMaker Training Storage Folders for Training Datasets, Checkpoints, + // Model Artifacts, and Outputs (https://docs.aws.amazon.com/sagemaker/latest/dg/model-train-storage.html). // // VolumeSizeInGB is a required field VolumeSizeInGB *int64 `min:"1" type:"integer" required:"true"` @@ -89339,7 +89504,7 @@ type StoppingCondition struct { _ struct{} `type:"structure"` // The maximum length of time, in seconds, that a training or compilation job - // can run. + // can run before it is stopped. // // For compilation jobs, if the job does not complete during this time, a TimeOut // error is generated. We recommend starting with 900 seconds and increasing @@ -89349,6 +89514,10 @@ type StoppingCondition struct { // ends the job. When RetryStrategy is specified in the job request, MaxRuntimeInSeconds // specifies the maximum time for all of the attempts in total, not each individual // attempt. The default value is 1 day. The maximum value is 28 days. + // + // The maximum time that a TrainingJob can run in total, including any time + // spent publishing metrics or archiving and uploading models after it has been + // stopped, is 30 days. MaxRuntimeInSeconds *int64 `min:"1" type:"integer"` // The maximum length of time, in seconds, that a managed Spot training job