mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Update Go AWS SDK to the latest version
This commit is contained in:
committed by
Andrey Smirnov
parent
d08be990ef
commit
94a72b23ff
+1390
-244
File diff suppressed because it is too large
Load Diff
+13
-13
@@ -6,11 +6,11 @@
|
||||
// Amazon WorkMail is a secure, managed business email and calendaring service
|
||||
// with support for existing desktop and mobile email clients. You can access
|
||||
// your email, contacts, and calendars using Microsoft Outlook, your browser,
|
||||
// or their native iOS and Android email applications. You can integrate Amazon
|
||||
// WorkMail with your existing corporate directory and control both the keys
|
||||
// that encrypt your data and the location in which your data is stored.
|
||||
// or other native iOS and Android email applications. You can integrate WorkMail
|
||||
// with your existing corporate directory and control both the keys that encrypt
|
||||
// your data and the location in which your data is stored.
|
||||
//
|
||||
// The Amazon WorkMail API is designed for the following scenarios:
|
||||
// The WorkMail API is designed for the following scenarios:
|
||||
//
|
||||
// * Listing and describing organizations
|
||||
//
|
||||
@@ -20,16 +20,16 @@
|
||||
//
|
||||
// * Managing resources
|
||||
//
|
||||
// All Amazon WorkMail API actions are Amazon-authenticated and certificate-signed.
|
||||
// All WorkMail API operations are Amazon-authenticated and certificate-signed.
|
||||
// They not only require the use of the AWS SDK, but also allow for the exclusive
|
||||
// use of IAM users and roles to help facilitate access, trust, and permission
|
||||
// policies. By creating a role and allowing an IAM user to access the Amazon
|
||||
// WorkMail site, the IAM user gains full administrative visibility into the
|
||||
// entire Amazon WorkMail organization (or as set in the IAM policy). This includes,
|
||||
// but is not limited to, the ability to create, update, and delete users, groups,
|
||||
// and resources. This allows developers to perform the scenarios listed above,
|
||||
// as well as give users the ability to grant access on a selective basis using
|
||||
// the IAM model.
|
||||
// use of AWS Identity and Access Management users and roles to help facilitate
|
||||
// access, trust, and permission policies. By creating a role and allowing an
|
||||
// IAM user to access the WorkMail site, the IAM user gains full administrative
|
||||
// visibility into the entire WorkMail organization (or as set in the IAM policy).
|
||||
// This includes, but is not limited to, the ability to create, update, and
|
||||
// delete users, groups, and resources. This allows developers to perform the
|
||||
// scenarios listed above, as well as give users the ability to grant access
|
||||
// on a selective basis using the IAM model.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01 for more information on this service.
|
||||
//
|
||||
|
||||
+9
-10
@@ -7,14 +7,13 @@ const (
|
||||
// ErrCodeDirectoryServiceAuthenticationFailedException for service response error code
|
||||
// "DirectoryServiceAuthenticationFailedException".
|
||||
//
|
||||
// The Directory Service doesn't recognize the credentials supplied by the Amazon
|
||||
// WorkMail service.
|
||||
// The directory service doesn't recognize the credentials supplied by WorkMail.
|
||||
ErrCodeDirectoryServiceAuthenticationFailedException = "DirectoryServiceAuthenticationFailedException"
|
||||
|
||||
// ErrCodeDirectoryUnavailableException for service response error code
|
||||
// "DirectoryUnavailableException".
|
||||
//
|
||||
// The directory that you are trying to perform operations on isn't available.
|
||||
// The directory on which you are trying to perform operations isn't available.
|
||||
ErrCodeDirectoryUnavailableException = "DirectoryUnavailableException"
|
||||
|
||||
// ErrCodeEmailAddressInUseException for service response error code
|
||||
@@ -33,15 +32,15 @@ const (
|
||||
// ErrCodeEntityNotFoundException for service response error code
|
||||
// "EntityNotFoundException".
|
||||
//
|
||||
// The identifier supplied for the entity is valid, but it does not exist in
|
||||
// The identifier supplied for the user, group, or resource does not exist in
|
||||
// your organization.
|
||||
ErrCodeEntityNotFoundException = "EntityNotFoundException"
|
||||
|
||||
// ErrCodeEntityStateException for service response error code
|
||||
// "EntityStateException".
|
||||
//
|
||||
// You are performing an operation on an entity that isn't in the expected state,
|
||||
// such as trying to update a deleted user.
|
||||
// You are performing an operation on a user, group, or resource that isn't
|
||||
// in the expected state, such as trying to delete an active user.
|
||||
ErrCodeEntityStateException = "EntityStateException"
|
||||
|
||||
// ErrCodeInvalidConfigurationException for service response error code
|
||||
@@ -49,7 +48,7 @@ const (
|
||||
//
|
||||
// The configuration for a resource isn't valid. A resource must either be able
|
||||
// to auto-respond to requests or have at least one delegate associated that
|
||||
// can do it on its behalf.
|
||||
// can do so on its behalf.
|
||||
ErrCodeInvalidConfigurationException = "InvalidConfigurationException"
|
||||
|
||||
// ErrCodeInvalidParameterException for service response error code
|
||||
@@ -82,7 +81,7 @@ const (
|
||||
// ErrCodeNameAvailabilityException for service response error code
|
||||
// "NameAvailabilityException".
|
||||
//
|
||||
// The entity (user, group, or user) name isn't unique in Amazon WorkMail.
|
||||
// The user, group, or resource name isn't unique in Amazon WorkMail.
|
||||
ErrCodeNameAvailabilityException = "NameAvailabilityException"
|
||||
|
||||
// ErrCodeOrganizationNotFoundException for service response error code
|
||||
@@ -96,13 +95,13 @@ const (
|
||||
// "OrganizationStateException".
|
||||
//
|
||||
// The organization must have a valid state (Active or Synchronizing) to perform
|
||||
// certain operations on the organization or its entities.
|
||||
// certain operations on the organization or its members.
|
||||
ErrCodeOrganizationStateException = "OrganizationStateException"
|
||||
|
||||
// ErrCodeReservedNameException for service response error code
|
||||
// "ReservedNameException".
|
||||
//
|
||||
// This entity name is not allowed in Amazon WorkMail.
|
||||
// This user, group, or resource name is not allowed in Amazon WorkMail.
|
||||
ErrCodeReservedNameException = "ReservedNameException"
|
||||
|
||||
// ErrCodeUnsupportedOperationException for service response error code
|
||||
|
||||
+4
-2
@@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "workmail" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "workmail" // Name of service.
|
||||
EndpointsID = ServiceName // ID to lookup a service endpoint with.
|
||||
ServiceID = "WorkMail" // ServiceID is a unique identifer of a specific service.
|
||||
)
|
||||
|
||||
// New creates a new instance of the WorkMail client with a session.
|
||||
@@ -55,6 +56,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
||||
+26
@@ -92,6 +92,10 @@ type WorkMailAPI interface {
|
||||
DeleteGroupWithContext(aws.Context, *workmail.DeleteGroupInput, ...request.Option) (*workmail.DeleteGroupOutput, error)
|
||||
DeleteGroupRequest(*workmail.DeleteGroupInput) (*request.Request, *workmail.DeleteGroupOutput)
|
||||
|
||||
DeleteMailboxPermissions(*workmail.DeleteMailboxPermissionsInput) (*workmail.DeleteMailboxPermissionsOutput, error)
|
||||
DeleteMailboxPermissionsWithContext(aws.Context, *workmail.DeleteMailboxPermissionsInput, ...request.Option) (*workmail.DeleteMailboxPermissionsOutput, error)
|
||||
DeleteMailboxPermissionsRequest(*workmail.DeleteMailboxPermissionsInput) (*request.Request, *workmail.DeleteMailboxPermissionsOutput)
|
||||
|
||||
DeleteResource(*workmail.DeleteResourceInput) (*workmail.DeleteResourceOutput, error)
|
||||
DeleteResourceWithContext(aws.Context, *workmail.DeleteResourceInput, ...request.Option) (*workmail.DeleteResourceOutput, error)
|
||||
DeleteResourceRequest(*workmail.DeleteResourceInput) (*request.Request, *workmail.DeleteResourceOutput)
|
||||
@@ -128,6 +132,10 @@ type WorkMailAPI interface {
|
||||
DisassociateMemberFromGroupWithContext(aws.Context, *workmail.DisassociateMemberFromGroupInput, ...request.Option) (*workmail.DisassociateMemberFromGroupOutput, error)
|
||||
DisassociateMemberFromGroupRequest(*workmail.DisassociateMemberFromGroupInput) (*request.Request, *workmail.DisassociateMemberFromGroupOutput)
|
||||
|
||||
GetMailboxDetails(*workmail.GetMailboxDetailsInput) (*workmail.GetMailboxDetailsOutput, error)
|
||||
GetMailboxDetailsWithContext(aws.Context, *workmail.GetMailboxDetailsInput, ...request.Option) (*workmail.GetMailboxDetailsOutput, error)
|
||||
GetMailboxDetailsRequest(*workmail.GetMailboxDetailsInput) (*request.Request, *workmail.GetMailboxDetailsOutput)
|
||||
|
||||
ListAliases(*workmail.ListAliasesInput) (*workmail.ListAliasesOutput, error)
|
||||
ListAliasesWithContext(aws.Context, *workmail.ListAliasesInput, ...request.Option) (*workmail.ListAliasesOutput, error)
|
||||
ListAliasesRequest(*workmail.ListAliasesInput) (*request.Request, *workmail.ListAliasesOutput)
|
||||
@@ -149,6 +157,13 @@ type WorkMailAPI interface {
|
||||
ListGroupsPages(*workmail.ListGroupsInput, func(*workmail.ListGroupsOutput, bool) bool) error
|
||||
ListGroupsPagesWithContext(aws.Context, *workmail.ListGroupsInput, func(*workmail.ListGroupsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListMailboxPermissions(*workmail.ListMailboxPermissionsInput) (*workmail.ListMailboxPermissionsOutput, error)
|
||||
ListMailboxPermissionsWithContext(aws.Context, *workmail.ListMailboxPermissionsInput, ...request.Option) (*workmail.ListMailboxPermissionsOutput, error)
|
||||
ListMailboxPermissionsRequest(*workmail.ListMailboxPermissionsInput) (*request.Request, *workmail.ListMailboxPermissionsOutput)
|
||||
|
||||
ListMailboxPermissionsPages(*workmail.ListMailboxPermissionsInput, func(*workmail.ListMailboxPermissionsOutput, bool) bool) error
|
||||
ListMailboxPermissionsPagesWithContext(aws.Context, *workmail.ListMailboxPermissionsInput, func(*workmail.ListMailboxPermissionsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListOrganizations(*workmail.ListOrganizationsInput) (*workmail.ListOrganizationsOutput, error)
|
||||
ListOrganizationsWithContext(aws.Context, *workmail.ListOrganizationsInput, ...request.Option) (*workmail.ListOrganizationsOutput, error)
|
||||
ListOrganizationsRequest(*workmail.ListOrganizationsInput) (*request.Request, *workmail.ListOrganizationsOutput)
|
||||
@@ -160,6 +175,9 @@ type WorkMailAPI interface {
|
||||
ListResourceDelegatesWithContext(aws.Context, *workmail.ListResourceDelegatesInput, ...request.Option) (*workmail.ListResourceDelegatesOutput, error)
|
||||
ListResourceDelegatesRequest(*workmail.ListResourceDelegatesInput) (*request.Request, *workmail.ListResourceDelegatesOutput)
|
||||
|
||||
ListResourceDelegatesPages(*workmail.ListResourceDelegatesInput, func(*workmail.ListResourceDelegatesOutput, bool) bool) error
|
||||
ListResourceDelegatesPagesWithContext(aws.Context, *workmail.ListResourceDelegatesInput, func(*workmail.ListResourceDelegatesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListResources(*workmail.ListResourcesInput) (*workmail.ListResourcesOutput, error)
|
||||
ListResourcesWithContext(aws.Context, *workmail.ListResourcesInput, ...request.Option) (*workmail.ListResourcesOutput, error)
|
||||
ListResourcesRequest(*workmail.ListResourcesInput) (*request.Request, *workmail.ListResourcesOutput)
|
||||
@@ -174,6 +192,10 @@ type WorkMailAPI interface {
|
||||
ListUsersPages(*workmail.ListUsersInput, func(*workmail.ListUsersOutput, bool) bool) error
|
||||
ListUsersPagesWithContext(aws.Context, *workmail.ListUsersInput, func(*workmail.ListUsersOutput, bool) bool, ...request.Option) error
|
||||
|
||||
PutMailboxPermissions(*workmail.PutMailboxPermissionsInput) (*workmail.PutMailboxPermissionsOutput, error)
|
||||
PutMailboxPermissionsWithContext(aws.Context, *workmail.PutMailboxPermissionsInput, ...request.Option) (*workmail.PutMailboxPermissionsOutput, error)
|
||||
PutMailboxPermissionsRequest(*workmail.PutMailboxPermissionsInput) (*request.Request, *workmail.PutMailboxPermissionsOutput)
|
||||
|
||||
RegisterToWorkMail(*workmail.RegisterToWorkMailInput) (*workmail.RegisterToWorkMailOutput, error)
|
||||
RegisterToWorkMailWithContext(aws.Context, *workmail.RegisterToWorkMailInput, ...request.Option) (*workmail.RegisterToWorkMailOutput, error)
|
||||
RegisterToWorkMailRequest(*workmail.RegisterToWorkMailInput) (*request.Request, *workmail.RegisterToWorkMailOutput)
|
||||
@@ -182,6 +204,10 @@ type WorkMailAPI interface {
|
||||
ResetPasswordWithContext(aws.Context, *workmail.ResetPasswordInput, ...request.Option) (*workmail.ResetPasswordOutput, error)
|
||||
ResetPasswordRequest(*workmail.ResetPasswordInput) (*request.Request, *workmail.ResetPasswordOutput)
|
||||
|
||||
UpdateMailboxQuota(*workmail.UpdateMailboxQuotaInput) (*workmail.UpdateMailboxQuotaOutput, error)
|
||||
UpdateMailboxQuotaWithContext(aws.Context, *workmail.UpdateMailboxQuotaInput, ...request.Option) (*workmail.UpdateMailboxQuotaOutput, error)
|
||||
UpdateMailboxQuotaRequest(*workmail.UpdateMailboxQuotaInput) (*request.Request, *workmail.UpdateMailboxQuotaOutput)
|
||||
|
||||
UpdatePrimaryEmailAddress(*workmail.UpdatePrimaryEmailAddressInput) (*workmail.UpdatePrimaryEmailAddressOutput, error)
|
||||
UpdatePrimaryEmailAddressWithContext(aws.Context, *workmail.UpdatePrimaryEmailAddressInput, ...request.Option) (*workmail.UpdatePrimaryEmailAddressOutput, error)
|
||||
UpdatePrimaryEmailAddressRequest(*workmail.UpdatePrimaryEmailAddressInput) (*request.Request, *workmail.UpdatePrimaryEmailAddressOutput)
|
||||
|
||||
Reference in New Issue
Block a user