forked from TrueCloudLab/rclone
vendor: update all dependencies
This commit is contained in:
parent
3f0789e2db
commit
08021c4636
2474 changed files with 435818 additions and 282709 deletions
2
vendor/github.com/aws/aws-sdk-go/service/acm/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/acm/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "acm" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "ACM" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ACM 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/acmpca/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/acmpca/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "acm-pca" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "ACM PCA" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ACMPCA 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,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/api.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/api.go
generated
vendored
|
@ -9673,6 +9673,9 @@ const (
|
|||
const (
|
||||
// DeviceEventTypeConnectionStatus is a DeviceEventType enum value
|
||||
DeviceEventTypeConnectionStatus = "CONNECTION_STATUS"
|
||||
|
||||
// DeviceEventTypeDeviceStatus is a DeviceEventType enum value
|
||||
DeviceEventTypeDeviceStatus = "DEVICE_STATUS"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -9684,6 +9687,9 @@ const (
|
|||
|
||||
// DeviceStatusWasOffline is a DeviceStatus enum value
|
||||
DeviceStatusWasOffline = "WAS_OFFLINE"
|
||||
|
||||
// DeviceStatusDeregistered is a DeviceStatus enum value
|
||||
DeviceStatusDeregistered = "DEREGISTERED"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "a4b" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "a4b" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Alexa For Business" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the AlexaForBusiness 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,
|
||||
|
|
33
vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go
generated
vendored
33
vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go
generated
vendored
|
@ -15203,7 +15203,7 @@ type EndpointConfiguration struct {
|
|||
// A list of endpoint types of an API (RestApi) or its custom domain name (DomainName).
|
||||
// For an edge-optimized API and its custom domain name, the endpoint type is
|
||||
// "EDGE". For a regional API and its custom domain name, the endpoint type
|
||||
// is REGIONAL.
|
||||
// is REGIONAL. For a private API, the endpoint type is PRIVATE.
|
||||
Types []*string `locationName:"types" type:"list"`
|
||||
}
|
||||
|
||||
|
@ -16577,11 +16577,11 @@ type GetExportInput struct {
|
|||
|
||||
// A key-value map of query string parameters that specify properties of the
|
||||
// export, depending on the requested exportType. For exportTypeswagger, any
|
||||
// combination of the following parameters are supported: integrations will
|
||||
// export the API with x-amazon-apigateway-integration extensions. authorizers
|
||||
// will export the API with x-amazon-apigateway-authorizer extensions. postman
|
||||
// will export the API with Postman extensions, allowing for import to the Postman
|
||||
// tool
|
||||
// combination of the following parameters are supported: extensions='integrations'
|
||||
// or extensions='apigateway' will export the API with x-amazon-apigateway-integration
|
||||
// extensions. extensions='authorizers' will export the API with x-amazon-apigateway-authorizer
|
||||
// extensions. postman will export the API with Postman extensions, allowing
|
||||
// for import to the Postman tool
|
||||
Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"`
|
||||
|
||||
// [Required] The string identifier of the associated RestApi.
|
||||
|
@ -19141,8 +19141,9 @@ type ImportRestApiInput struct {
|
|||
//
|
||||
// To exclude DocumentationParts from the import, set parameters as ignore=documentation.
|
||||
//
|
||||
// To configure the endpoint type, set parameters as endpointConfigurationTypes=EDGE
|
||||
// orendpointConfigurationTypes=REGIONAL. The default endpoint type is EDGE.
|
||||
// To configure the endpoint type, set parameters as endpointConfigurationTypes=EDGE,
|
||||
// endpointConfigurationTypes=REGIONAL, or endpointConfigurationTypes=PRIVATE.
|
||||
// The default endpoint type is EDGE.
|
||||
//
|
||||
// To handle imported basePath, set parameters as basePath=ignore, basePath=prepend
|
||||
// or basePath=split.
|
||||
|
@ -19151,11 +19152,11 @@ type ImportRestApiInput struct {
|
|||
// API is:
|
||||
//
|
||||
// aws apigateway import-rest-api --parameters ignore=documentation --body
|
||||
// 'file:///path/to/imported-api-body.json
|
||||
// 'file:///path/to/imported-api-body.json'
|
||||
// The AWS CLI command to set the regional endpoint on the imported API is:
|
||||
//
|
||||
// aws apigateway import-rest-api --parameters endpointConfigurationTypes=REGIONAL
|
||||
// --body 'file:///path/to/imported-api-body.json
|
||||
// --body 'file:///path/to/imported-api-body.json'
|
||||
Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"`
|
||||
}
|
||||
|
||||
|
@ -20996,7 +20997,7 @@ type PutRestApiInput struct {
|
|||
// Custom header parameters as part of the request. For example, to exclude
|
||||
// DocumentationParts from an imported API, set ignore=documentation as a parameters
|
||||
// value, as in the AWS CLI command of aws apigateway import-rest-api --parameters
|
||||
// ignore=documentation --body 'file:///path/to/imported-api-body.json.
|
||||
// ignore=documentation --body 'file:///path/to/imported-api-body.json'.
|
||||
Parameters map[string]*string `location:"querystring" locationName:"parameters" type:"map"`
|
||||
|
||||
// [Required] The string identifier of the associated RestApi.
|
||||
|
@ -24162,15 +24163,19 @@ const (
|
|||
DocumentationPartTypeResponseBody = "RESPONSE_BODY"
|
||||
)
|
||||
|
||||
// The endpoint type. The valid value is EDGE for edge-optimized API setup,
|
||||
// most suitable for mobile applications, REGIONAL for regional API endpoint
|
||||
// setup, most suitable for calling from AWS Region
|
||||
// The endpoint type. The valid values are EDGE for edge-optimized API setup,
|
||||
// most suitable for mobile applications; REGIONAL for regional API endpoint
|
||||
// setup, most suitable for calling from AWS Region; and PRIVATE for private
|
||||
// APIs.
|
||||
const (
|
||||
// EndpointTypeRegional is a EndpointType enum value
|
||||
EndpointTypeRegional = "REGIONAL"
|
||||
|
||||
// EndpointTypeEdge is a EndpointType enum value
|
||||
EndpointTypeEdge = "EDGE"
|
||||
|
||||
// EndpointTypePrivate is a EndpointType enum value
|
||||
EndpointTypePrivate = "PRIVATE"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/apigateway/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/apigateway/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "apigateway" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "apigateway" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "API Gateway" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the APIGateway 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,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "autoscaling" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = "application-autoscaling" // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "autoscaling" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = "application-autoscaling" // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Application Auto Scaling" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ApplicationAutoScaling client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "discovery" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "discovery" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Application Discovery Service" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ApplicationDiscoveryService 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,
|
||||
|
|
158
vendor/github.com/aws/aws-sdk-go/service/appstream/api.go
generated
vendored
158
vendor/github.com/aws/aws-sdk-go/service/appstream/api.go
generated
vendored
|
@ -3827,6 +3827,10 @@ type CreateStackInput struct {
|
|||
|
||||
// The storage connectors to enable.
|
||||
StorageConnectors []*StorageConnector `type:"list"`
|
||||
|
||||
// The actions that are enabled or disabled for users during their streaming
|
||||
// sessions. By default, these actions are enabled.
|
||||
UserSettings []*UserSetting `min:"1" type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -3848,6 +3852,9 @@ func (s *CreateStackInput) Validate() error {
|
|||
if s.Name != nil && len(*s.Name) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
|
||||
}
|
||||
if s.UserSettings != nil && len(s.UserSettings) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("UserSettings", 1))
|
||||
}
|
||||
if s.StorageConnectors != nil {
|
||||
for i, v := range s.StorageConnectors {
|
||||
if v == nil {
|
||||
|
@ -3858,6 +3865,16 @@ func (s *CreateStackInput) Validate() error {
|
|||
}
|
||||
}
|
||||
}
|
||||
if s.UserSettings != nil {
|
||||
for i, v := range s.UserSettings {
|
||||
if v == nil {
|
||||
continue
|
||||
}
|
||||
if err := v.Validate(); err != nil {
|
||||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserSettings", i), err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
|
@ -3901,6 +3918,12 @@ func (s *CreateStackInput) SetStorageConnectors(v []*StorageConnector) *CreateSt
|
|||
return s
|
||||
}
|
||||
|
||||
// SetUserSettings sets the UserSettings field's value.
|
||||
func (s *CreateStackInput) SetUserSettings(v []*UserSetting) *CreateStackInput {
|
||||
s.UserSettings = v
|
||||
return s
|
||||
}
|
||||
|
||||
type CreateStackOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -6118,6 +6141,10 @@ type Stack struct {
|
|||
|
||||
// The storage connectors to enable.
|
||||
StorageConnectors []*StorageConnector `type:"list"`
|
||||
|
||||
// The actions that are enabled or disabled for users during their streaming
|
||||
// sessions. By default these actions are enabled.
|
||||
UserSettings []*UserSetting `min:"1" type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -6184,6 +6211,12 @@ func (s *Stack) SetStorageConnectors(v []*StorageConnector) *Stack {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetUserSettings sets the UserSettings field's value.
|
||||
func (s *Stack) SetUserSettings(v []*UserSetting) *Stack {
|
||||
s.UserSettings = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Describes a stack error.
|
||||
type StackError struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -6468,7 +6501,7 @@ func (s *StopImageBuilderOutput) SetImageBuilder(v *ImageBuilder) *StopImageBuil
|
|||
return s
|
||||
}
|
||||
|
||||
// Describes a storage connector.
|
||||
// Describes a connector to enable persistent storage for users.
|
||||
type StorageConnector struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -6477,6 +6510,9 @@ type StorageConnector struct {
|
|||
// ConnectorType is a required field
|
||||
ConnectorType *string `type:"string" required:"true" enum:"StorageConnectorType"`
|
||||
|
||||
// The names of the domains for the G Suite account.
|
||||
Domains []*string `type:"list"`
|
||||
|
||||
// The ARN of the storage connector.
|
||||
ResourceIdentifier *string `min:"1" type:"string"`
|
||||
}
|
||||
|
@ -6513,6 +6549,12 @@ func (s *StorageConnector) SetConnectorType(v string) *StorageConnector {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetDomains sets the Domains field's value.
|
||||
func (s *StorageConnector) SetDomains(v []*string) *StorageConnector {
|
||||
s.Domains = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetResourceIdentifier sets the ResourceIdentifier field's value.
|
||||
func (s *StorageConnector) SetResourceIdentifier(v string) *StorageConnector {
|
||||
s.ResourceIdentifier = &v
|
||||
|
@ -7002,6 +7044,10 @@ type UpdateStackInput struct {
|
|||
|
||||
// The storage connectors to enable.
|
||||
StorageConnectors []*StorageConnector `type:"list"`
|
||||
|
||||
// The actions that are enabled or disabled for users during their streaming
|
||||
// sessions. By default, these actions are enabled.
|
||||
UserSettings []*UserSetting `min:"1" type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -7023,6 +7069,9 @@ func (s *UpdateStackInput) Validate() error {
|
|||
if s.Name != nil && len(*s.Name) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
|
||||
}
|
||||
if s.UserSettings != nil && len(s.UserSettings) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("UserSettings", 1))
|
||||
}
|
||||
if s.StorageConnectors != nil {
|
||||
for i, v := range s.StorageConnectors {
|
||||
if v == nil {
|
||||
|
@ -7033,6 +7082,16 @@ func (s *UpdateStackInput) Validate() error {
|
|||
}
|
||||
}
|
||||
}
|
||||
if s.UserSettings != nil {
|
||||
for i, v := range s.UserSettings {
|
||||
if v == nil {
|
||||
continue
|
||||
}
|
||||
if err := v.Validate(); err != nil {
|
||||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserSettings", i), err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
|
@ -7088,6 +7147,12 @@ func (s *UpdateStackInput) SetStorageConnectors(v []*StorageConnector) *UpdateSt
|
|||
return s
|
||||
}
|
||||
|
||||
// SetUserSettings sets the UserSettings field's value.
|
||||
func (s *UpdateStackInput) SetUserSettings(v []*UserSetting) *UpdateStackInput {
|
||||
s.UserSettings = v
|
||||
return s
|
||||
}
|
||||
|
||||
type UpdateStackOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -7111,6 +7176,60 @@ func (s *UpdateStackOutput) SetStack(v *Stack) *UpdateStackOutput {
|
|||
return s
|
||||
}
|
||||
|
||||
// Describes an action and whether the action is enabled or disabled for users
|
||||
// during their streaming sessions.
|
||||
type UserSetting struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The action that is enabled or disabled.
|
||||
//
|
||||
// Action is a required field
|
||||
Action *string `type:"string" required:"true" enum:"Action"`
|
||||
|
||||
// Indicates whether the action is enabled or disabled.
|
||||
//
|
||||
// Permission is a required field
|
||||
Permission *string `type:"string" required:"true" enum:"Permission"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s UserSetting) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s UserSetting) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *UserSetting) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "UserSetting"}
|
||||
if s.Action == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Action"))
|
||||
}
|
||||
if s.Permission == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Permission"))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetAction sets the Action field's value.
|
||||
func (s *UserSetting) SetAction(v string) *UserSetting {
|
||||
s.Action = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPermission sets the Permission field's value.
|
||||
func (s *UserSetting) SetPermission(v string) *UserSetting {
|
||||
s.Permission = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Describes VPC configuration information.
|
||||
type VpcConfig struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -7144,6 +7263,23 @@ func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig {
|
|||
return s
|
||||
}
|
||||
|
||||
const (
|
||||
// ActionClipboardCopyFromLocalDevice is a Action enum value
|
||||
ActionClipboardCopyFromLocalDevice = "CLIPBOARD_COPY_FROM_LOCAL_DEVICE"
|
||||
|
||||
// ActionClipboardCopyToLocalDevice is a Action enum value
|
||||
ActionClipboardCopyToLocalDevice = "CLIPBOARD_COPY_TO_LOCAL_DEVICE"
|
||||
|
||||
// ActionFileUpload is a Action enum value
|
||||
ActionFileUpload = "FILE_UPLOAD"
|
||||
|
||||
// ActionFileDownload is a Action enum value
|
||||
ActionFileDownload = "FILE_DOWNLOAD"
|
||||
|
||||
// ActionPrintingToLocalDevice is a Action enum value
|
||||
ActionPrintingToLocalDevice = "PRINTING_TO_LOCAL_DEVICE"
|
||||
)
|
||||
|
||||
const (
|
||||
// AuthenticationTypeApi is a AuthenticationType enum value
|
||||
AuthenticationTypeApi = "API"
|
||||
|
@ -7334,6 +7470,14 @@ const (
|
|||
ImageStateChangeReasonCodeImageCopyFailure = "IMAGE_COPY_FAILURE"
|
||||
)
|
||||
|
||||
const (
|
||||
// PermissionEnabled is a Permission enum value
|
||||
PermissionEnabled = "ENABLED"
|
||||
|
||||
// PermissionDisabled is a Permission enum value
|
||||
PermissionDisabled = "DISABLED"
|
||||
)
|
||||
|
||||
const (
|
||||
// PlatformTypeWindows is a PlatformType enum value
|
||||
PlatformTypeWindows = "WINDOWS"
|
||||
|
@ -7355,6 +7499,12 @@ const (
|
|||
// StackAttributeStorageConnectors is a StackAttribute enum value
|
||||
StackAttributeStorageConnectors = "STORAGE_CONNECTORS"
|
||||
|
||||
// StackAttributeStorageConnectorHomefolders is a StackAttribute enum value
|
||||
StackAttributeStorageConnectorHomefolders = "STORAGE_CONNECTOR_HOMEFOLDERS"
|
||||
|
||||
// StackAttributeStorageConnectorGoogleDrive is a StackAttribute enum value
|
||||
StackAttributeStorageConnectorGoogleDrive = "STORAGE_CONNECTOR_GOOGLE_DRIVE"
|
||||
|
||||
// StackAttributeRedirectUrl is a StackAttribute enum value
|
||||
StackAttributeRedirectUrl = "REDIRECT_URL"
|
||||
|
||||
|
@ -7363,6 +7513,9 @@ const (
|
|||
|
||||
// StackAttributeThemeName is a StackAttribute enum value
|
||||
StackAttributeThemeName = "THEME_NAME"
|
||||
|
||||
// StackAttributeUserSettings is a StackAttribute enum value
|
||||
StackAttributeUserSettings = "USER_SETTINGS"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -7377,6 +7530,9 @@ const (
|
|||
const (
|
||||
// StorageConnectorTypeHomefolders is a StorageConnectorType enum value
|
||||
StorageConnectorTypeHomefolders = "HOMEFOLDERS"
|
||||
|
||||
// StorageConnectorTypeGoogleDrive is a StorageConnectorType enum value
|
||||
StorageConnectorTypeGoogleDrive = "GOOGLE_DRIVE"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/appstream/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/appstream/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "appstream2" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "AppStream" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the AppStream client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/appsync/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/appsync/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "appsync" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "AppSync" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the AppSync client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/athena/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/athena/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "athena" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Athena" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the Athena 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,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/autoscaling/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/autoscaling/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "autoscaling" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "autoscaling" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Auto Scaling" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the AutoScaling 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,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "autoscaling" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "autoscaling" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Auto Scaling Plans" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the AutoScalingPlans client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/batch/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/batch/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "batch" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Batch" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the Batch 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,
|
||||
|
|
3
vendor/github.com/aws/aws-sdk-go/service/budgets/api.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go/service/budgets/api.go
generated
vendored
|
@ -3193,6 +3193,9 @@ const (
|
|||
|
||||
// BudgetTypeRiUtilization is a BudgetType enum value
|
||||
BudgetTypeRiUtilization = "RI_UTILIZATION"
|
||||
|
||||
// BudgetTypeRiCoverage is a BudgetType enum value
|
||||
BudgetTypeRiCoverage = "RI_COVERAGE"
|
||||
)
|
||||
|
||||
// The comparison operator of a notification. Currently we support less than,
|
||||
|
|
5
vendor/github.com/aws/aws-sdk-go/service/budgets/doc.go
generated
vendored
5
vendor/github.com/aws/aws-sdk-go/service/budgets/doc.go
generated
vendored
|
@ -35,7 +35,10 @@
|
|||
//
|
||||
// The AWS Budgets API provides the following endpoint:
|
||||
//
|
||||
// * https://budgets.us-east-1.amazonaws.com
|
||||
// * https://budgets.amazonaws.com
|
||||
//
|
||||
// For information about costs associated with the AWS Budgets API, see AWS
|
||||
// Cost Management Pricing (https://aws.amazon.com/aws-cost-management/pricing/).
|
||||
//
|
||||
// See budgets package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/budgets/
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/budgets/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/budgets/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "budgets" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Budgets" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the Budgets 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/cloud9/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/cloud9/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "cloud9" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Cloud9" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the Cloud9 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,
|
||||
|
|
731
vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go
generated
vendored
731
vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go
generated
vendored
|
@ -3248,6 +3248,120 @@ func (c *CloudDirectory) GetFacetWithContext(ctx aws.Context, input *GetFacetInp
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opGetLinkAttributes = "GetLinkAttributes"
|
||||
|
||||
// GetLinkAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetLinkAttributes operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 GetLinkAttributes for more information on using the GetLinkAttributes
|
||||
// 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 GetLinkAttributesRequest method.
|
||||
// req, resp := client.GetLinkAttributesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetLinkAttributes
|
||||
func (c *CloudDirectory) GetLinkAttributesRequest(input *GetLinkAttributesInput) (req *request.Request, output *GetLinkAttributesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opGetLinkAttributes,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/amazonclouddirectory/2017-01-11/typedlink/attributes/get",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &GetLinkAttributesInput{}
|
||||
}
|
||||
|
||||
output = &GetLinkAttributesOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// GetLinkAttributes API operation for Amazon CloudDirectory.
|
||||
//
|
||||
// Retrieves attributes that are associated with a typed link.
|
||||
//
|
||||
// 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 Amazon CloudDirectory's
|
||||
// API operation GetLinkAttributes for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInternalServiceException "InternalServiceException"
|
||||
// Indicates a problem that must be resolved by Amazon Web Services. This might
|
||||
// be a transient error in which case you can retry your request until it succeeds.
|
||||
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
|
||||
// site to see if there are any operational issues with the service.
|
||||
//
|
||||
// * ErrCodeInvalidArnException "InvalidArnException"
|
||||
// Indicates that the provided ARN value is not valid.
|
||||
//
|
||||
// * ErrCodeRetryableConflictException "RetryableConflictException"
|
||||
// Occurs when a conflict with a previous successful write is detected. For
|
||||
// example, if a write operation occurs on an object and then an attempt is
|
||||
// made to read the object using “SERIALIZABLE” consistency, this exception
|
||||
// may result. This generally occurs when the previous write did not have time
|
||||
// to propagate to the host serving the current request. A retry (with appropriate
|
||||
// backoff logic) is the recommended response to this exception.
|
||||
//
|
||||
// * ErrCodeValidationException "ValidationException"
|
||||
// Indicates that your request is malformed in some manner. See the exception
|
||||
// message.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html)
|
||||
// for more information.
|
||||
//
|
||||
// * ErrCodeAccessDeniedException "AccessDeniedException"
|
||||
// Access denied. Check your permissions.
|
||||
//
|
||||
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
|
||||
// Operations are only permitted on enabled directories.
|
||||
//
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified resource could not be found.
|
||||
//
|
||||
// * ErrCodeFacetValidationException "FacetValidationException"
|
||||
// The Facet that you provided was not well formed or could not be validated
|
||||
// with the schema.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/GetLinkAttributes
|
||||
func (c *CloudDirectory) GetLinkAttributes(input *GetLinkAttributesInput) (*GetLinkAttributesOutput, error) {
|
||||
req, out := c.GetLinkAttributesRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// GetLinkAttributesWithContext is the same as GetLinkAttributes with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See GetLinkAttributes 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 *CloudDirectory) GetLinkAttributesWithContext(ctx aws.Context, input *GetLinkAttributesInput, opts ...request.Option) (*GetLinkAttributesOutput, error) {
|
||||
req, out := c.GetLinkAttributesRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opGetObjectAttributes = "GetObjectAttributes"
|
||||
|
||||
// GetObjectAttributesRequest generates a "aws/request.Request" representing the
|
||||
|
@ -7682,6 +7796,121 @@ func (c *CloudDirectory) UpdateFacetWithContext(ctx aws.Context, input *UpdateFa
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opUpdateLinkAttributes = "UpdateLinkAttributes"
|
||||
|
||||
// UpdateLinkAttributesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateLinkAttributes operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 UpdateLinkAttributes for more information on using the UpdateLinkAttributes
|
||||
// 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 UpdateLinkAttributesRequest method.
|
||||
// req, resp := client.UpdateLinkAttributesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateLinkAttributes
|
||||
func (c *CloudDirectory) UpdateLinkAttributesRequest(input *UpdateLinkAttributesInput) (req *request.Request, output *UpdateLinkAttributesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opUpdateLinkAttributes,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/amazonclouddirectory/2017-01-11/typedlink/attributes/update",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &UpdateLinkAttributesInput{}
|
||||
}
|
||||
|
||||
output = &UpdateLinkAttributesOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// UpdateLinkAttributes API operation for Amazon CloudDirectory.
|
||||
//
|
||||
// Updates a given typed link’s attributes. Attributes to be updated must not
|
||||
// contribute to the typed link’s identity, as defined by its IdentityAttributeOrder.
|
||||
//
|
||||
// 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 Amazon CloudDirectory's
|
||||
// API operation UpdateLinkAttributes for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInternalServiceException "InternalServiceException"
|
||||
// Indicates a problem that must be resolved by Amazon Web Services. This might
|
||||
// be a transient error in which case you can retry your request until it succeeds.
|
||||
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
|
||||
// site to see if there are any operational issues with the service.
|
||||
//
|
||||
// * ErrCodeInvalidArnException "InvalidArnException"
|
||||
// Indicates that the provided ARN value is not valid.
|
||||
//
|
||||
// * ErrCodeRetryableConflictException "RetryableConflictException"
|
||||
// Occurs when a conflict with a previous successful write is detected. For
|
||||
// example, if a write operation occurs on an object and then an attempt is
|
||||
// made to read the object using “SERIALIZABLE” consistency, this exception
|
||||
// may result. This generally occurs when the previous write did not have time
|
||||
// to propagate to the host serving the current request. A retry (with appropriate
|
||||
// backoff logic) is the recommended response to this exception.
|
||||
//
|
||||
// * ErrCodeValidationException "ValidationException"
|
||||
// Indicates that your request is malformed in some manner. See the exception
|
||||
// message.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html)
|
||||
// for more information.
|
||||
//
|
||||
// * ErrCodeAccessDeniedException "AccessDeniedException"
|
||||
// Access denied. Check your permissions.
|
||||
//
|
||||
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
|
||||
// Operations are only permitted on enabled directories.
|
||||
//
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified resource could not be found.
|
||||
//
|
||||
// * ErrCodeFacetValidationException "FacetValidationException"
|
||||
// The Facet that you provided was not well formed or could not be validated
|
||||
// with the schema.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10/UpdateLinkAttributes
|
||||
func (c *CloudDirectory) UpdateLinkAttributes(input *UpdateLinkAttributesInput) (*UpdateLinkAttributesOutput, error) {
|
||||
req, out := c.UpdateLinkAttributesRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// UpdateLinkAttributesWithContext is the same as UpdateLinkAttributes with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See UpdateLinkAttributes 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 *CloudDirectory) UpdateLinkAttributesWithContext(ctx aws.Context, input *UpdateLinkAttributesInput, opts ...request.Option) (*UpdateLinkAttributesOutput, error) {
|
||||
req, out := c.UpdateLinkAttributesRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opUpdateObjectAttributes = "UpdateObjectAttributes"
|
||||
|
||||
// UpdateObjectAttributesRequest generates a "aws/request.Request" representing the
|
||||
|
@ -7770,6 +7999,10 @@ func (c *CloudDirectory) UpdateObjectAttributesRequest(input *UpdateObjectAttrib
|
|||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The specified resource could not be found.
|
||||
//
|
||||
// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException"
|
||||
// Indicates that a link could not be created due to a naming conflict. Choose
|
||||
// a different name and then try again.
|
||||
//
|
||||
// * ErrCodeFacetValidationException "FacetValidationException"
|
||||
// The Facet that you provided was not well formed or could not be validated
|
||||
// with the schema.
|
||||
|
@ -10115,6 +10348,89 @@ func (s BatchDetachTypedLinkResponse) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
// Retrieves attributes that are associated with a typed link inside a BatchRead
|
||||
// operation. For more information, see GetLinkAttributes and BatchReadRequest$Operations.
|
||||
type BatchGetLinkAttributes struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// A list of attribute names whose values will be retrieved.
|
||||
//
|
||||
// AttributeNames is a required field
|
||||
AttributeNames []*string `type:"list" required:"true"`
|
||||
|
||||
// Allows a typed link specifier to be accepted as input.
|
||||
//
|
||||
// TypedLinkSpecifier is a required field
|
||||
TypedLinkSpecifier *TypedLinkSpecifier `type:"structure" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s BatchGetLinkAttributes) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s BatchGetLinkAttributes) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *BatchGetLinkAttributes) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "BatchGetLinkAttributes"}
|
||||
if s.AttributeNames == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("AttributeNames"))
|
||||
}
|
||||
if s.TypedLinkSpecifier == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("TypedLinkSpecifier"))
|
||||
}
|
||||
if s.TypedLinkSpecifier != nil {
|
||||
if err := s.TypedLinkSpecifier.Validate(); err != nil {
|
||||
invalidParams.AddNested("TypedLinkSpecifier", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetAttributeNames sets the AttributeNames field's value.
|
||||
func (s *BatchGetLinkAttributes) SetAttributeNames(v []*string) *BatchGetLinkAttributes {
|
||||
s.AttributeNames = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetTypedLinkSpecifier sets the TypedLinkSpecifier field's value.
|
||||
func (s *BatchGetLinkAttributes) SetTypedLinkSpecifier(v *TypedLinkSpecifier) *BatchGetLinkAttributes {
|
||||
s.TypedLinkSpecifier = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Represents the output of a GetLinkAttributes response operation.
|
||||
type BatchGetLinkAttributesResponse struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The attributes that are associated with the typed link.
|
||||
Attributes []*AttributeKeyAndValue `type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s BatchGetLinkAttributesResponse) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s BatchGetLinkAttributesResponse) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetAttributes sets the Attributes field's value.
|
||||
func (s *BatchGetLinkAttributesResponse) SetAttributes(v []*AttributeKeyAndValue) *BatchGetLinkAttributesResponse {
|
||||
s.Attributes = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Retrieves attributes within a facet that are associated with an object inside
|
||||
// an BatchRead operation. For more information, see GetObjectAttributes and
|
||||
// BatchReadRequest$Operations.
|
||||
|
@ -11454,6 +11770,9 @@ func (s *BatchReadInput) SetOperations(v []*BatchReadOperation) *BatchReadInput
|
|||
type BatchReadOperation struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Retrieves attributes that are associated with a typed link.
|
||||
GetLinkAttributes *BatchGetLinkAttributes `type:"structure"`
|
||||
|
||||
// Retrieves attributes within a facet that are associated with an object.
|
||||
GetObjectAttributes *BatchGetObjectAttributes `type:"structure"`
|
||||
|
||||
|
@ -11517,6 +11836,11 @@ func (s BatchReadOperation) GoString() string {
|
|||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *BatchReadOperation) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "BatchReadOperation"}
|
||||
if s.GetLinkAttributes != nil {
|
||||
if err := s.GetLinkAttributes.Validate(); err != nil {
|
||||
invalidParams.AddNested("GetLinkAttributes", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
if s.GetObjectAttributes != nil {
|
||||
if err := s.GetObjectAttributes.Validate(); err != nil {
|
||||
invalidParams.AddNested("GetObjectAttributes", err.(request.ErrInvalidParams))
|
||||
|
@ -11584,6 +11908,12 @@ func (s *BatchReadOperation) Validate() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// SetGetLinkAttributes sets the GetLinkAttributes field's value.
|
||||
func (s *BatchReadOperation) SetGetLinkAttributes(v *BatchGetLinkAttributes) *BatchReadOperation {
|
||||
s.GetLinkAttributes = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetGetObjectAttributes sets the GetObjectAttributes field's value.
|
||||
func (s *BatchReadOperation) SetGetObjectAttributes(v *BatchGetObjectAttributes) *BatchReadOperation {
|
||||
s.GetObjectAttributes = v
|
||||
|
@ -11716,6 +12046,9 @@ func (s *BatchReadOutput) SetResponses(v []*BatchReadOperationResponse) *BatchRe
|
|||
type BatchReadSuccessfulResponse struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The list of attributes to retrieve from the typed link.
|
||||
GetLinkAttributes *BatchGetLinkAttributesResponse `type:"structure"`
|
||||
|
||||
// Retrieves attributes within a facet that are associated with an object.
|
||||
GetObjectAttributes *BatchGetObjectAttributesResponse `type:"structure"`
|
||||
|
||||
|
@ -11776,6 +12109,12 @@ func (s BatchReadSuccessfulResponse) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
// SetGetLinkAttributes sets the GetLinkAttributes field's value.
|
||||
func (s *BatchReadSuccessfulResponse) SetGetLinkAttributes(v *BatchGetLinkAttributesResponse) *BatchReadSuccessfulResponse {
|
||||
s.GetLinkAttributes = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetGetObjectAttributes sets the GetObjectAttributes field's value.
|
||||
func (s *BatchReadSuccessfulResponse) SetGetObjectAttributes(v *BatchGetObjectAttributesResponse) *BatchReadSuccessfulResponse {
|
||||
s.GetObjectAttributes = v
|
||||
|
@ -11921,6 +12260,92 @@ func (s BatchRemoveFacetFromObjectResponse) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
// Updates a given typed link’s attributes inside a BatchRead operation. Attributes
|
||||
// to be updated must not contribute to the typed link’s identity, as defined
|
||||
// by its IdentityAttributeOrder. For more information, see UpdateLinkAttributes
|
||||
// and BatchReadRequest$Operations.
|
||||
type BatchUpdateLinkAttributes struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The attributes update structure.
|
||||
//
|
||||
// AttributeUpdates is a required field
|
||||
AttributeUpdates []*LinkAttributeUpdate `type:"list" required:"true"`
|
||||
|
||||
// Allows a typed link specifier to be accepted as input.
|
||||
//
|
||||
// TypedLinkSpecifier is a required field
|
||||
TypedLinkSpecifier *TypedLinkSpecifier `type:"structure" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s BatchUpdateLinkAttributes) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s BatchUpdateLinkAttributes) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *BatchUpdateLinkAttributes) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "BatchUpdateLinkAttributes"}
|
||||
if s.AttributeUpdates == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("AttributeUpdates"))
|
||||
}
|
||||
if s.TypedLinkSpecifier == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("TypedLinkSpecifier"))
|
||||
}
|
||||
if s.AttributeUpdates != nil {
|
||||
for i, v := range s.AttributeUpdates {
|
||||
if v == nil {
|
||||
continue
|
||||
}
|
||||
if err := v.Validate(); err != nil {
|
||||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AttributeUpdates", i), err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
}
|
||||
if s.TypedLinkSpecifier != nil {
|
||||
if err := s.TypedLinkSpecifier.Validate(); err != nil {
|
||||
invalidParams.AddNested("TypedLinkSpecifier", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetAttributeUpdates sets the AttributeUpdates field's value.
|
||||
func (s *BatchUpdateLinkAttributes) SetAttributeUpdates(v []*LinkAttributeUpdate) *BatchUpdateLinkAttributes {
|
||||
s.AttributeUpdates = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetTypedLinkSpecifier sets the TypedLinkSpecifier field's value.
|
||||
func (s *BatchUpdateLinkAttributes) SetTypedLinkSpecifier(v *TypedLinkSpecifier) *BatchUpdateLinkAttributes {
|
||||
s.TypedLinkSpecifier = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Represents the output of a UpdateLinkAttributes response operation.
|
||||
type BatchUpdateLinkAttributesResponse struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s BatchUpdateLinkAttributesResponse) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s BatchUpdateLinkAttributesResponse) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Represents the output of a BatchUpdate operation.
|
||||
type BatchUpdateObjectAttributes struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -12118,6 +12543,9 @@ type BatchWriteOperation struct {
|
|||
// A batch operation that removes a facet from an object.
|
||||
RemoveFacetFromObject *BatchRemoveFacetFromObject `type:"structure"`
|
||||
|
||||
// Updates a given object's attributes.
|
||||
UpdateLinkAttributes *BatchUpdateLinkAttributes `type:"structure"`
|
||||
|
||||
// Updates a given object's attributes.
|
||||
UpdateObjectAttributes *BatchUpdateObjectAttributes `type:"structure"`
|
||||
}
|
||||
|
@ -12200,6 +12628,11 @@ func (s *BatchWriteOperation) Validate() error {
|
|||
invalidParams.AddNested("RemoveFacetFromObject", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
if s.UpdateLinkAttributes != nil {
|
||||
if err := s.UpdateLinkAttributes.Validate(); err != nil {
|
||||
invalidParams.AddNested("UpdateLinkAttributes", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
if s.UpdateObjectAttributes != nil {
|
||||
if err := s.UpdateObjectAttributes.Validate(); err != nil {
|
||||
invalidParams.AddNested("UpdateObjectAttributes", err.(request.ErrInvalidParams))
|
||||
|
@ -12290,6 +12723,12 @@ func (s *BatchWriteOperation) SetRemoveFacetFromObject(v *BatchRemoveFacetFromOb
|
|||
return s
|
||||
}
|
||||
|
||||
// SetUpdateLinkAttributes sets the UpdateLinkAttributes field's value.
|
||||
func (s *BatchWriteOperation) SetUpdateLinkAttributes(v *BatchUpdateLinkAttributes) *BatchWriteOperation {
|
||||
s.UpdateLinkAttributes = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetUpdateObjectAttributes sets the UpdateObjectAttributes field's value.
|
||||
func (s *BatchWriteOperation) SetUpdateObjectAttributes(v *BatchUpdateObjectAttributes) *BatchWriteOperation {
|
||||
s.UpdateObjectAttributes = v
|
||||
|
@ -12343,6 +12782,9 @@ type BatchWriteOperationResponse struct {
|
|||
// The result of a batch remove facet from object operation.
|
||||
RemoveFacetFromObject *BatchRemoveFacetFromObjectResponse `type:"structure"`
|
||||
|
||||
// Represents the output of a BatchWrite response operation.
|
||||
UpdateLinkAttributes *BatchUpdateLinkAttributesResponse `type:"structure"`
|
||||
|
||||
// Updates a given object’s attributes.
|
||||
UpdateObjectAttributes *BatchUpdateObjectAttributesResponse `type:"structure"`
|
||||
}
|
||||
|
@ -12435,6 +12877,12 @@ func (s *BatchWriteOperationResponse) SetRemoveFacetFromObject(v *BatchRemoveFac
|
|||
return s
|
||||
}
|
||||
|
||||
// SetUpdateLinkAttributes sets the UpdateLinkAttributes field's value.
|
||||
func (s *BatchWriteOperationResponse) SetUpdateLinkAttributes(v *BatchUpdateLinkAttributesResponse) *BatchWriteOperationResponse {
|
||||
s.UpdateLinkAttributes = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetUpdateObjectAttributes sets the UpdateObjectAttributes field's value.
|
||||
func (s *BatchWriteOperationResponse) SetUpdateObjectAttributes(v *BatchUpdateObjectAttributesResponse) *BatchWriteOperationResponse {
|
||||
s.UpdateObjectAttributes = v
|
||||
|
@ -14429,6 +14877,110 @@ func (s *GetFacetOutput) SetFacet(v *Facet) *GetFacetOutput {
|
|||
return s
|
||||
}
|
||||
|
||||
type GetLinkAttributesInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// A list of attribute names whose values will be retrieved.
|
||||
//
|
||||
// AttributeNames is a required field
|
||||
AttributeNames []*string `type:"list" required:"true"`
|
||||
|
||||
// The consistency level at which to retrieve the attributes on a typed link.
|
||||
ConsistencyLevel *string `type:"string" enum:"ConsistencyLevel"`
|
||||
|
||||
// The Amazon Resource Name (ARN) that is associated with the Directory where
|
||||
// the typed link resides. For more information, see arns or Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink).
|
||||
//
|
||||
// DirectoryArn is a required field
|
||||
DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"`
|
||||
|
||||
// Allows a typed link specifier to be accepted as input.
|
||||
//
|
||||
// TypedLinkSpecifier is a required field
|
||||
TypedLinkSpecifier *TypedLinkSpecifier `type:"structure" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s GetLinkAttributesInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s GetLinkAttributesInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *GetLinkAttributesInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "GetLinkAttributesInput"}
|
||||
if s.AttributeNames == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("AttributeNames"))
|
||||
}
|
||||
if s.DirectoryArn == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("DirectoryArn"))
|
||||
}
|
||||
if s.TypedLinkSpecifier == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("TypedLinkSpecifier"))
|
||||
}
|
||||
if s.TypedLinkSpecifier != nil {
|
||||
if err := s.TypedLinkSpecifier.Validate(); err != nil {
|
||||
invalidParams.AddNested("TypedLinkSpecifier", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetAttributeNames sets the AttributeNames field's value.
|
||||
func (s *GetLinkAttributesInput) SetAttributeNames(v []*string) *GetLinkAttributesInput {
|
||||
s.AttributeNames = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetConsistencyLevel sets the ConsistencyLevel field's value.
|
||||
func (s *GetLinkAttributesInput) SetConsistencyLevel(v string) *GetLinkAttributesInput {
|
||||
s.ConsistencyLevel = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetDirectoryArn sets the DirectoryArn field's value.
|
||||
func (s *GetLinkAttributesInput) SetDirectoryArn(v string) *GetLinkAttributesInput {
|
||||
s.DirectoryArn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetTypedLinkSpecifier sets the TypedLinkSpecifier field's value.
|
||||
func (s *GetLinkAttributesInput) SetTypedLinkSpecifier(v *TypedLinkSpecifier) *GetLinkAttributesInput {
|
||||
s.TypedLinkSpecifier = v
|
||||
return s
|
||||
}
|
||||
|
||||
type GetLinkAttributesOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The attributes that are associated with the typed link.
|
||||
Attributes []*AttributeKeyAndValue `type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s GetLinkAttributesOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s GetLinkAttributesOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetAttributes sets the Attributes field's value.
|
||||
func (s *GetLinkAttributesOutput) SetAttributes(v []*AttributeKeyAndValue) *GetLinkAttributesOutput {
|
||||
s.Attributes = v
|
||||
return s
|
||||
}
|
||||
|
||||
type GetObjectAttributesInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -14832,6 +15384,88 @@ func (s *IndexAttachment) SetObjectIdentifier(v string) *IndexAttachment {
|
|||
return s
|
||||
}
|
||||
|
||||
// The action to take on a typed link attribute value. Updates are only supported
|
||||
// for attributes which don’t contribute to link identity.
|
||||
type LinkAttributeAction struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// A type that can be either UPDATE_OR_CREATE or DELETE.
|
||||
AttributeActionType *string `type:"string" enum:"UpdateActionType"`
|
||||
|
||||
// The value that you want to update to.
|
||||
AttributeUpdateValue *TypedAttributeValue `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s LinkAttributeAction) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s LinkAttributeAction) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetAttributeActionType sets the AttributeActionType field's value.
|
||||
func (s *LinkAttributeAction) SetAttributeActionType(v string) *LinkAttributeAction {
|
||||
s.AttributeActionType = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetAttributeUpdateValue sets the AttributeUpdateValue field's value.
|
||||
func (s *LinkAttributeAction) SetAttributeUpdateValue(v *TypedAttributeValue) *LinkAttributeAction {
|
||||
s.AttributeUpdateValue = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Structure that contains attribute update information.
|
||||
type LinkAttributeUpdate struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The action to perform as part of the attribute update.
|
||||
AttributeAction *LinkAttributeAction `type:"structure"`
|
||||
|
||||
// The key of the attribute being updated.
|
||||
AttributeKey *AttributeKey `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s LinkAttributeUpdate) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s LinkAttributeUpdate) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *LinkAttributeUpdate) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "LinkAttributeUpdate"}
|
||||
if s.AttributeKey != nil {
|
||||
if err := s.AttributeKey.Validate(); err != nil {
|
||||
invalidParams.AddNested("AttributeKey", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetAttributeAction sets the AttributeAction field's value.
|
||||
func (s *LinkAttributeUpdate) SetAttributeAction(v *LinkAttributeAction) *LinkAttributeUpdate {
|
||||
s.AttributeAction = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetAttributeKey sets the AttributeKey field's value.
|
||||
func (s *LinkAttributeUpdate) SetAttributeKey(v *AttributeKey) *LinkAttributeUpdate {
|
||||
s.AttributeKey = v
|
||||
return s
|
||||
}
|
||||
|
||||
type ListAppliedSchemaArnsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -18539,6 +19173,103 @@ func (s UpdateFacetOutput) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
type UpdateLinkAttributesInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The attributes update structure.
|
||||
//
|
||||
// AttributeUpdates is a required field
|
||||
AttributeUpdates []*LinkAttributeUpdate `type:"list" required:"true"`
|
||||
|
||||
// The Amazon Resource Name (ARN) that is associated with the Directory where
|
||||
// the updated typed link resides. For more information, see arns or Typed link
|
||||
// (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink).
|
||||
//
|
||||
// DirectoryArn is a required field
|
||||
DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"`
|
||||
|
||||
// Allows a typed link specifier to be accepted as input.
|
||||
//
|
||||
// TypedLinkSpecifier is a required field
|
||||
TypedLinkSpecifier *TypedLinkSpecifier `type:"structure" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s UpdateLinkAttributesInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s UpdateLinkAttributesInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *UpdateLinkAttributesInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "UpdateLinkAttributesInput"}
|
||||
if s.AttributeUpdates == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("AttributeUpdates"))
|
||||
}
|
||||
if s.DirectoryArn == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("DirectoryArn"))
|
||||
}
|
||||
if s.TypedLinkSpecifier == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("TypedLinkSpecifier"))
|
||||
}
|
||||
if s.AttributeUpdates != nil {
|
||||
for i, v := range s.AttributeUpdates {
|
||||
if v == nil {
|
||||
continue
|
||||
}
|
||||
if err := v.Validate(); err != nil {
|
||||
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AttributeUpdates", i), err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
}
|
||||
if s.TypedLinkSpecifier != nil {
|
||||
if err := s.TypedLinkSpecifier.Validate(); err != nil {
|
||||
invalidParams.AddNested("TypedLinkSpecifier", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetAttributeUpdates sets the AttributeUpdates field's value.
|
||||
func (s *UpdateLinkAttributesInput) SetAttributeUpdates(v []*LinkAttributeUpdate) *UpdateLinkAttributesInput {
|
||||
s.AttributeUpdates = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetDirectoryArn sets the DirectoryArn field's value.
|
||||
func (s *UpdateLinkAttributesInput) SetDirectoryArn(v string) *UpdateLinkAttributesInput {
|
||||
s.DirectoryArn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetTypedLinkSpecifier sets the TypedLinkSpecifier field's value.
|
||||
func (s *UpdateLinkAttributesInput) SetTypedLinkSpecifier(v *TypedLinkSpecifier) *UpdateLinkAttributesInput {
|
||||
s.TypedLinkSpecifier = v
|
||||
return s
|
||||
}
|
||||
|
||||
type UpdateLinkAttributesOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s UpdateLinkAttributesOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s UpdateLinkAttributesOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
type UpdateObjectAttributesInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
|
|
@ -172,6 +172,10 @@ type CloudDirectoryAPI interface {
|
|||
GetFacetWithContext(aws.Context, *clouddirectory.GetFacetInput, ...request.Option) (*clouddirectory.GetFacetOutput, error)
|
||||
GetFacetRequest(*clouddirectory.GetFacetInput) (*request.Request, *clouddirectory.GetFacetOutput)
|
||||
|
||||
GetLinkAttributes(*clouddirectory.GetLinkAttributesInput) (*clouddirectory.GetLinkAttributesOutput, error)
|
||||
GetLinkAttributesWithContext(aws.Context, *clouddirectory.GetLinkAttributesInput, ...request.Option) (*clouddirectory.GetLinkAttributesOutput, error)
|
||||
GetLinkAttributesRequest(*clouddirectory.GetLinkAttributesInput) (*request.Request, *clouddirectory.GetLinkAttributesOutput)
|
||||
|
||||
GetObjectAttributes(*clouddirectory.GetObjectAttributesInput) (*clouddirectory.GetObjectAttributesOutput, error)
|
||||
GetObjectAttributesWithContext(aws.Context, *clouddirectory.GetObjectAttributesInput, ...request.Option) (*clouddirectory.GetObjectAttributesOutput, error)
|
||||
GetObjectAttributesRequest(*clouddirectory.GetObjectAttributesInput) (*request.Request, *clouddirectory.GetObjectAttributesOutput)
|
||||
|
@ -346,6 +350,10 @@ type CloudDirectoryAPI interface {
|
|||
UpdateFacetWithContext(aws.Context, *clouddirectory.UpdateFacetInput, ...request.Option) (*clouddirectory.UpdateFacetOutput, error)
|
||||
UpdateFacetRequest(*clouddirectory.UpdateFacetInput) (*request.Request, *clouddirectory.UpdateFacetOutput)
|
||||
|
||||
UpdateLinkAttributes(*clouddirectory.UpdateLinkAttributesInput) (*clouddirectory.UpdateLinkAttributesOutput, error)
|
||||
UpdateLinkAttributesWithContext(aws.Context, *clouddirectory.UpdateLinkAttributesInput, ...request.Option) (*clouddirectory.UpdateLinkAttributesOutput, error)
|
||||
UpdateLinkAttributesRequest(*clouddirectory.UpdateLinkAttributesInput) (*request.Request, *clouddirectory.UpdateLinkAttributesOutput)
|
||||
|
||||
UpdateObjectAttributes(*clouddirectory.UpdateObjectAttributesInput) (*clouddirectory.UpdateObjectAttributesOutput, error)
|
||||
UpdateObjectAttributesWithContext(aws.Context, *clouddirectory.UpdateObjectAttributesInput, ...request.Option) (*clouddirectory.UpdateObjectAttributesOutput, error)
|
||||
UpdateObjectAttributesRequest(*clouddirectory.UpdateObjectAttributesInput) (*request.Request, *clouddirectory.UpdateObjectAttributesOutput)
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/clouddirectory/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/clouddirectory/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "clouddirectory" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudDirectory" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudDirectory client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
121
vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go
generated
vendored
121
vendor/github.com/aws/aws-sdk-go/service/cloudformation/api.go
generated
vendored
|
@ -3618,7 +3618,8 @@ func (c *CloudFormation) UpdateStackSetRequest(input *UpdateStackSetInput) (req
|
|||
|
||||
// UpdateStackSet API operation for AWS CloudFormation.
|
||||
//
|
||||
// Updates the stack set and all associated stack instances.
|
||||
// Updates the stack set, and associated stack instances in the specified accounts
|
||||
// and regions.
|
||||
//
|
||||
// Even if the stack set operation created by updating the stack set fails (completely
|
||||
// or partially, below or above a specified failure tolerance), the stack set
|
||||
|
@ -3650,6 +3651,9 @@ func (c *CloudFormation) UpdateStackSetRequest(input *UpdateStackSetInput) (req
|
|||
// * ErrCodeInvalidOperationException "InvalidOperationException"
|
||||
// The specified operation isn't valid.
|
||||
//
|
||||
// * ErrCodeStackInstanceNotFoundException "StackInstanceNotFoundException"
|
||||
// The specified stack instance doesn't exist.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/UpdateStackSet
|
||||
func (c *CloudFormation) UpdateStackSet(input *UpdateStackSetInput) (*UpdateStackSetOutput, error) {
|
||||
req, out := c.UpdateStackSetRequest(input)
|
||||
|
@ -5130,8 +5134,8 @@ type CreateStackSetInput struct {
|
|||
//
|
||||
// Specify an IAM role only if you are using customized administrator roles
|
||||
// to control which users or groups can manage specific stack sets within the
|
||||
// same administrator account. For more information, see Define Permissions
|
||||
// for Multiple Administrators (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html)
|
||||
// same administrator account. For more information, see Prerequisites: Granting
|
||||
// Permissions for Stack Set Operations (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html)
|
||||
// in the AWS CloudFormation User Guide.
|
||||
AdministrationRoleARN *string `min:"20" type:"string"`
|
||||
|
||||
|
@ -5184,6 +5188,14 @@ type CreateStackSetInput struct {
|
|||
// stack set's purpose or other important information.
|
||||
Description *string `min:"1" type:"string"`
|
||||
|
||||
// The name of the IAM execution role to use to create the stack set. If you
|
||||
// do not specify an execution role, AWS CloudFormation uses the AWSCloudFormationStackSetExecutionRole
|
||||
// role for the stack set operation.
|
||||
//
|
||||
// Specify an IAM role only if you are using customized execution roles to control
|
||||
// which stack resources users and groups can include in their stack sets.
|
||||
ExecutionRoleName *string `min:"1" type:"string"`
|
||||
|
||||
// The input parameters for the stack set template.
|
||||
Parameters []*Parameter `type:"list"`
|
||||
|
||||
|
@ -5248,6 +5260,9 @@ func (s *CreateStackSetInput) Validate() error {
|
|||
if s.Description != nil && len(*s.Description) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||||
}
|
||||
if s.ExecutionRoleName != nil && len(*s.ExecutionRoleName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleName", 1))
|
||||
}
|
||||
if s.StackSetName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("StackSetName"))
|
||||
}
|
||||
|
@ -5298,6 +5313,12 @@ func (s *CreateStackSetInput) SetDescription(v string) *CreateStackSetInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetExecutionRoleName sets the ExecutionRoleName field's value.
|
||||
func (s *CreateStackSetInput) SetExecutionRoleName(v string) *CreateStackSetInput {
|
||||
s.ExecutionRoleName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetParameters sets the Parameters field's value.
|
||||
func (s *CreateStackSetInput) SetParameters(v []*Parameter) *CreateStackSetInput {
|
||||
s.Parameters = v
|
||||
|
@ -9765,7 +9786,7 @@ type StackSet struct {
|
|||
//
|
||||
// Use customized administrator roles to control which users or groups can manage
|
||||
// specific stack sets within the same administrator account. For more information,
|
||||
// see Define Permissions for Multiple Administrators (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html)
|
||||
// see Prerequisites: Granting Permissions for Stack Set Operations (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs.html)
|
||||
// in the AWS CloudFormation User Guide.
|
||||
AdministrationRoleARN *string `min:"20" type:"string"`
|
||||
|
||||
|
@ -9780,6 +9801,12 @@ type StackSet struct {
|
|||
// or updated.
|
||||
Description *string `min:"1" type:"string"`
|
||||
|
||||
// The name of the IAM execution role used to create or update the stack set.
|
||||
//
|
||||
// Use customized execution roles to control which stack resources users and
|
||||
// groups can include in their stack sets.
|
||||
ExecutionRoleName *string `min:"1" type:"string"`
|
||||
|
||||
// A list of input parameters for a stack set.
|
||||
Parameters []*Parameter `type:"list"`
|
||||
|
||||
|
@ -9832,6 +9859,12 @@ func (s *StackSet) SetDescription(v string) *StackSet {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetExecutionRoleName sets the ExecutionRoleName field's value.
|
||||
func (s *StackSet) SetExecutionRoleName(v string) *StackSet {
|
||||
s.ExecutionRoleName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetParameters sets the Parameters field's value.
|
||||
func (s *StackSet) SetParameters(v []*Parameter) *StackSet {
|
||||
s.Parameters = v
|
||||
|
@ -9905,6 +9938,12 @@ type StackSetOperation struct {
|
|||
// set operation was successful, or even attempted, in each account or region.
|
||||
EndTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"`
|
||||
|
||||
// The name of the IAM execution role used to create or update the stack set.
|
||||
//
|
||||
// Use customized execution roles to control which stack resources users and
|
||||
// groups can include in their stack sets.
|
||||
ExecutionRoleName *string `min:"1" type:"string"`
|
||||
|
||||
// The unique ID of a stack set operation.
|
||||
OperationId *string `min:"1" type:"string"`
|
||||
|
||||
|
@ -9976,6 +10015,12 @@ func (s *StackSetOperation) SetEndTimestamp(v time.Time) *StackSetOperation {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetExecutionRoleName sets the ExecutionRoleName field's value.
|
||||
func (s *StackSetOperation) SetExecutionRoleName(v string) *StackSetOperation {
|
||||
s.ExecutionRoleName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetOperationId sets the OperationId field's value.
|
||||
func (s *StackSetOperation) SetOperationId(v string) *StackSetOperation {
|
||||
s.OperationId = &v
|
||||
|
@ -11168,6 +11213,23 @@ func (s *UpdateStackOutput) SetStackId(v string) *UpdateStackOutput {
|
|||
type UpdateStackSetInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The accounts in which to update associated stack instances. If you specify
|
||||
// accounts, you must also specify the regions in which to update stack set
|
||||
// instances.
|
||||
//
|
||||
// To update all the stack instances associated with this stack set, do not
|
||||
// specify the Accounts or Regions properties.
|
||||
//
|
||||
// If the stack set update includes changes to the template (that is, if the
|
||||
// TemplateBody or TemplateURL properties are specified), or the Parameters
|
||||
// property, AWS CloudFormation marks all stack instances with a status of OUTDATED
|
||||
// prior to updating the stack instances in the specified accounts and regions.
|
||||
// If the stack set update does not include changes to the template or parameters,
|
||||
// AWS CloudFormation updates the stack instances in the specified accounts
|
||||
// and regions, while leaving all other stack instances with their existing
|
||||
// stack instance status.
|
||||
Accounts []*string `type:"list"`
|
||||
|
||||
// The Amazon Resource Number (ARN) of the IAM role to use to update this stack
|
||||
// set.
|
||||
//
|
||||
|
@ -11223,6 +11285,20 @@ type UpdateStackSetInput struct {
|
|||
// A brief description of updates that you are making.
|
||||
Description *string `min:"1" type:"string"`
|
||||
|
||||
// The name of the IAM execution role to use to update the stack set. If you
|
||||
// do not specify an execution role, AWS CloudFormation uses the AWSCloudFormationStackSetExecutionRole
|
||||
// role for the stack set operation.
|
||||
//
|
||||
// Specify an IAM role only if you are using customized execution roles to control
|
||||
// which stack resources users and groups can include in their stack sets.
|
||||
//
|
||||
// If you specify a customized execution role, AWS CloudFormation uses that
|
||||
// role to update the stack. If you do not specify a customized execution role,
|
||||
// AWS CloudFormation performs the update using the role previously associated
|
||||
// with the stack set, so long as you have permissions to perform operations
|
||||
// on the stack set.
|
||||
ExecutionRoleName *string `min:"1" type:"string"`
|
||||
|
||||
// The unique ID for this stack set operation.
|
||||
//
|
||||
// The operation ID also functions as an idempotency token, to ensure that AWS
|
||||
|
@ -11242,6 +11318,22 @@ type UpdateStackSetInput struct {
|
|||
// A list of input parameters for the stack set template.
|
||||
Parameters []*Parameter `type:"list"`
|
||||
|
||||
// The regions in which to update associated stack instances. If you specify
|
||||
// regions, you must also specify accounts in which to update stack set instances.
|
||||
//
|
||||
// To update all the stack instances associated with this stack set, do not
|
||||
// specify the Accounts or Regions properties.
|
||||
//
|
||||
// If the stack set update includes changes to the template (that is, if the
|
||||
// TemplateBody or TemplateURL properties are specified), or the Parameters
|
||||
// property, AWS CloudFormation marks all stack instances with a status of OUTDATED
|
||||
// prior to updating the stack instances in the specified accounts and regions.
|
||||
// If the stack set update does not include changes to the template or parameters,
|
||||
// AWS CloudFormation updates the stack instances in the specified accounts
|
||||
// and regions, while leaving all other stack instances with their existing
|
||||
// stack instance status.
|
||||
Regions []*string `type:"list"`
|
||||
|
||||
// The name or unique ID of the stack set that you want to update.
|
||||
//
|
||||
// StackSetName is a required field
|
||||
|
@ -11321,6 +11413,9 @@ func (s *UpdateStackSetInput) Validate() error {
|
|||
if s.Description != nil && len(*s.Description) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Description", 1))
|
||||
}
|
||||
if s.ExecutionRoleName != nil && len(*s.ExecutionRoleName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleName", 1))
|
||||
}
|
||||
if s.OperationId != nil && len(*s.OperationId) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("OperationId", 1))
|
||||
}
|
||||
|
@ -11355,6 +11450,12 @@ func (s *UpdateStackSetInput) Validate() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// SetAccounts sets the Accounts field's value.
|
||||
func (s *UpdateStackSetInput) SetAccounts(v []*string) *UpdateStackSetInput {
|
||||
s.Accounts = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetAdministrationRoleARN sets the AdministrationRoleARN field's value.
|
||||
func (s *UpdateStackSetInput) SetAdministrationRoleARN(v string) *UpdateStackSetInput {
|
||||
s.AdministrationRoleARN = &v
|
||||
|
@ -11373,6 +11474,12 @@ func (s *UpdateStackSetInput) SetDescription(v string) *UpdateStackSetInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetExecutionRoleName sets the ExecutionRoleName field's value.
|
||||
func (s *UpdateStackSetInput) SetExecutionRoleName(v string) *UpdateStackSetInput {
|
||||
s.ExecutionRoleName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetOperationId sets the OperationId field's value.
|
||||
func (s *UpdateStackSetInput) SetOperationId(v string) *UpdateStackSetInput {
|
||||
s.OperationId = &v
|
||||
|
@ -11391,6 +11498,12 @@ func (s *UpdateStackSetInput) SetParameters(v []*Parameter) *UpdateStackSetInput
|
|||
return s
|
||||
}
|
||||
|
||||
// SetRegions sets the Regions field's value.
|
||||
func (s *UpdateStackSetInput) SetRegions(v []*string) *UpdateStackSetInput {
|
||||
s.Regions = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetStackSetName sets the StackSetName field's value.
|
||||
func (s *UpdateStackSetInput) SetStackSetName(v string) *UpdateStackSetInput {
|
||||
s.StackSetName = &v
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/cloudformation/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "cloudformation" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudFormation" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudFormation 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,
|
||||
|
|
4
vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go/service/cloudfront/api.go
generated
vendored
|
@ -72,7 +72,7 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCl
|
|||
// API operation CreateCloudFrontOriginAccessIdentity for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeOriginAccessIdentityAlreadyExists "OriginAccessIdentityAlreadyExists"
|
||||
// * ErrCodeOriginAccessIdentityAlreadyExists "CloudFrontOriginAccessIdentityAlreadyExists"
|
||||
// If the CallerReference is a value you already sent in a previous request
|
||||
// to create an identity but the content of the CloudFrontOriginAccessIdentityConfig
|
||||
// is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists
|
||||
|
@ -1239,7 +1239,7 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCl
|
|||
// The precondition given in one or more of the request-header fields evaluated
|
||||
// to false.
|
||||
//
|
||||
// * ErrCodeOriginAccessIdentityInUse "OriginAccessIdentityInUse"
|
||||
// * ErrCodeOriginAccessIdentityInUse "CloudFrontOriginAccessIdentityInUse"
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2017-10-30/DeleteCloudFrontOriginAccessIdentity
|
||||
func (c *CloudFront) DeleteCloudFrontOriginAccessIdentity(input *DeleteCloudFrontOriginAccessIdentityInput) (*DeleteCloudFrontOriginAccessIdentityOutput, error) {
|
||||
|
|
8
vendor/github.com/aws/aws-sdk-go/service/cloudfront/errors.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go/service/cloudfront/errors.go
generated
vendored
|
@ -264,17 +264,17 @@ const (
|
|||
ErrCodeNoSuchStreamingDistribution = "NoSuchStreamingDistribution"
|
||||
|
||||
// ErrCodeOriginAccessIdentityAlreadyExists for service response error code
|
||||
// "OriginAccessIdentityAlreadyExists".
|
||||
// "CloudFrontOriginAccessIdentityAlreadyExists".
|
||||
//
|
||||
// If the CallerReference is a value you already sent in a previous request
|
||||
// to create an identity but the content of the CloudFrontOriginAccessIdentityConfig
|
||||
// is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists
|
||||
// error.
|
||||
ErrCodeOriginAccessIdentityAlreadyExists = "OriginAccessIdentityAlreadyExists"
|
||||
ErrCodeOriginAccessIdentityAlreadyExists = "CloudFrontOriginAccessIdentityAlreadyExists"
|
||||
|
||||
// ErrCodeOriginAccessIdentityInUse for service response error code
|
||||
// "OriginAccessIdentityInUse".
|
||||
ErrCodeOriginAccessIdentityInUse = "OriginAccessIdentityInUse"
|
||||
// "CloudFrontOriginAccessIdentityInUse".
|
||||
ErrCodeOriginAccessIdentityInUse = "CloudFrontOriginAccessIdentityInUse"
|
||||
|
||||
// ErrCodePreconditionFailed for service response error code
|
||||
// "PreconditionFailed".
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/cloudfront/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "cloudfront" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudFront" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudFront 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/cloudhsm/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/cloudhsm/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "cloudhsm" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudHSM" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudHSM 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,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "cloudhsmv2" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "cloudhsmv2" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudHSM V2" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudHSMV2 client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/cloudsearch/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/cloudsearch/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "cloudsearch" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudSearch" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudSearch 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,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/cloudsearchdomain/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "cloudsearchdomain" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "cloudsearchdomain" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudSearch Domain" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudSearchDomain client with a session.
|
||||
|
@ -63,6 +64,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/cloudtrail/api.go
generated
vendored
|
@ -73,7 +73,7 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request,
|
|||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// This exception is thrown when the specified resource is not found.
|
||||
//
|
||||
// * ErrCodeARNInvalidException "ARNInvalidException"
|
||||
// * ErrCodeARNInvalidException "CloudTrailARNInvalidException"
|
||||
// This exception is thrown when an operation is called with an invalid trail
|
||||
// ARN. The format of a trail ARN is:
|
||||
//
|
||||
|
@ -842,7 +842,7 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request
|
|||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// This exception is thrown when the specified resource is not found.
|
||||
//
|
||||
// * ErrCodeARNInvalidException "ARNInvalidException"
|
||||
// * ErrCodeARNInvalidException "CloudTrailARNInvalidException"
|
||||
// This exception is thrown when an operation is called with an invalid trail
|
||||
// ARN. The format of a trail ARN is:
|
||||
//
|
||||
|
@ -1271,7 +1271,7 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req
|
|||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// This exception is thrown when the specified resource is not found.
|
||||
//
|
||||
// * ErrCodeARNInvalidException "ARNInvalidException"
|
||||
// * ErrCodeARNInvalidException "CloudTrailARNInvalidException"
|
||||
// This exception is thrown when an operation is called with an invalid trail
|
||||
// ARN. The format of a trail ARN is:
|
||||
//
|
||||
|
|
4
vendor/github.com/aws/aws-sdk-go/service/cloudtrail/errors.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go/service/cloudtrail/errors.go
generated
vendored
|
@ -5,13 +5,13 @@ package cloudtrail
|
|||
const (
|
||||
|
||||
// ErrCodeARNInvalidException for service response error code
|
||||
// "ARNInvalidException".
|
||||
// "CloudTrailARNInvalidException".
|
||||
//
|
||||
// This exception is thrown when an operation is called with an invalid trail
|
||||
// ARN. The format of a trail ARN is:
|
||||
//
|
||||
// arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
|
||||
ErrCodeARNInvalidException = "ARNInvalidException"
|
||||
ErrCodeARNInvalidException = "CloudTrailARNInvalidException"
|
||||
|
||||
// ErrCodeCloudWatchLogsDeliveryUnavailableException for service response error code
|
||||
// "CloudWatchLogsDeliveryUnavailableException".
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/cloudtrail/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "cloudtrail" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudTrail" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudTrail 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/cloudwatch/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/cloudwatch/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "monitoring" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudWatch" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudWatch 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,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "events" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "events" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudWatch Events" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudWatchEvents 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,
|
||||
|
|
7
vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go
generated
vendored
7
vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/api.go
generated
vendored
|
@ -1281,6 +1281,7 @@ func (c *CloudWatchLogs) DescribeDestinationsPages(input *DescribeDestinationsIn
|
|||
// for more information on using Contexts.
|
||||
func (c *CloudWatchLogs) DescribeDestinationsPagesWithContext(ctx aws.Context, input *DescribeDestinationsInput, fn func(*DescribeDestinationsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
EndPageOnSameToken: true,
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
var inCpy *DescribeDestinationsInput
|
||||
if input != nil {
|
||||
|
@ -1503,6 +1504,7 @@ func (c *CloudWatchLogs) DescribeLogGroupsPages(input *DescribeLogGroupsInput, f
|
|||
// for more information on using Contexts.
|
||||
func (c *CloudWatchLogs) DescribeLogGroupsPagesWithContext(ctx aws.Context, input *DescribeLogGroupsInput, fn func(*DescribeLogGroupsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
EndPageOnSameToken: true,
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
var inCpy *DescribeLogGroupsInput
|
||||
if input != nil {
|
||||
|
@ -1649,6 +1651,7 @@ func (c *CloudWatchLogs) DescribeLogStreamsPages(input *DescribeLogStreamsInput,
|
|||
// for more information on using Contexts.
|
||||
func (c *CloudWatchLogs) DescribeLogStreamsPagesWithContext(ctx aws.Context, input *DescribeLogStreamsInput, fn func(*DescribeLogStreamsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
EndPageOnSameToken: true,
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
var inCpy *DescribeLogStreamsInput
|
||||
if input != nil {
|
||||
|
@ -1792,6 +1795,7 @@ func (c *CloudWatchLogs) DescribeMetricFiltersPages(input *DescribeMetricFilters
|
|||
// for more information on using Contexts.
|
||||
func (c *CloudWatchLogs) DescribeMetricFiltersPagesWithContext(ctx aws.Context, input *DescribeMetricFiltersInput, fn func(*DescribeMetricFiltersOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
EndPageOnSameToken: true,
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
var inCpy *DescribeMetricFiltersInput
|
||||
if input != nil {
|
||||
|
@ -2017,6 +2021,7 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersPages(input *DescribeSubscri
|
|||
// for more information on using Contexts.
|
||||
func (c *CloudWatchLogs) DescribeSubscriptionFiltersPagesWithContext(ctx aws.Context, input *DescribeSubscriptionFiltersInput, fn func(*DescribeSubscriptionFiltersOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
EndPageOnSameToken: true,
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
var inCpy *DescribeSubscriptionFiltersInput
|
||||
if input != nil {
|
||||
|
@ -2264,6 +2269,7 @@ func (c *CloudWatchLogs) FilterLogEventsPages(input *FilterLogEventsInput, fn fu
|
|||
// for more information on using Contexts.
|
||||
func (c *CloudWatchLogs) FilterLogEventsPagesWithContext(ctx aws.Context, input *FilterLogEventsInput, fn func(*FilterLogEventsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
EndPageOnSameToken: true,
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
var inCpy *FilterLogEventsInput
|
||||
if input != nil {
|
||||
|
@ -2410,6 +2416,7 @@ func (c *CloudWatchLogs) GetLogEventsPages(input *GetLogEventsInput, fn func(*Ge
|
|||
// for more information on using Contexts.
|
||||
func (c *CloudWatchLogs) GetLogEventsPagesWithContext(ctx aws.Context, input *GetLogEventsInput, fn func(*GetLogEventsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
EndPageOnSameToken: true,
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
var inCpy *GetLogEventsInput
|
||||
if input != nil {
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "logs" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "logs" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CloudWatch Logs" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CloudWatchLogs 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,
|
||||
|
|
175
vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go
generated
vendored
175
vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go
generated
vendored
|
@ -388,7 +388,7 @@ func (c *CodeBuild) CreateWebhookRequest(input *CreateWebhookInput) (req *reques
|
|||
// AWS CodePipeline. Because billing is on a per-build basis, you will be billed
|
||||
// for both builds. Therefore, if you are using AWS CodePipeline, we recommend
|
||||
// that you disable webhooks in CodeBuild. In the AWS CodeBuild console, clear
|
||||
// the Webhook box. For more information, see step 9 in Change a Build Project's
|
||||
// the Webhook box. For more information, see step 5 in Change a Build Project's
|
||||
// Settings (http://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console).
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
|
@ -1619,6 +1619,9 @@ type Build struct {
|
|||
// The name of the AWS CodeBuild project.
|
||||
ProjectName *string `locationName:"projectName" min:"1" type:"string"`
|
||||
|
||||
// The name of a service role used for this build.
|
||||
ServiceRole *string `locationName:"serviceRole" min:"1" type:"string"`
|
||||
|
||||
// Information about the source code to be built.
|
||||
Source *ProjectSource `locationName:"source" type:"structure"`
|
||||
|
||||
|
@ -1733,6 +1736,12 @@ func (s *Build) SetProjectName(v string) *Build {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetServiceRole sets the ServiceRole field's value.
|
||||
func (s *Build) SetServiceRole(v string) *Build {
|
||||
s.ServiceRole = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetSource sets the Source field's value.
|
||||
func (s *Build) SetSource(v *ProjectSource) *Build {
|
||||
s.Source = v
|
||||
|
@ -3256,10 +3265,21 @@ type ProjectArtifacts struct {
|
|||
// because no build output will be produced.
|
||||
//
|
||||
// * If type is set to S3, this is the name of the output artifact object.
|
||||
// If you set the name to be a forward slash ("/"), then the artifact is
|
||||
// stored in the root of the output bucket.
|
||||
//
|
||||
// For example, if path is set to MyArtifacts, namespaceType is set to BUILD_ID,
|
||||
// and name is set to MyArtifact.zip, then the output artifact would be stored
|
||||
// in MyArtifacts/build-ID/MyArtifact.zip.
|
||||
// For example:
|
||||
//
|
||||
// * If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and
|
||||
// name is set to MyArtifact.zip, then the output artifact would be stored
|
||||
// in MyArtifacts/build-ID/MyArtifact.zip.
|
||||
//
|
||||
// * If path is empty, namespaceType is set to NONE, and name is set to
|
||||
// "/", then the output artifact would be stored in the root of the output
|
||||
// bucket.
|
||||
//
|
||||
// * If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and
|
||||
// name is set to "/", then the output artifact would be stored in MyArtifacts/build-ID.
|
||||
Name *string `locationName:"name" type:"string"`
|
||||
|
||||
// Along with path and name, the pattern that AWS CodeBuild will use to determine
|
||||
|
@ -3825,6 +3845,22 @@ type StartBuildInput struct {
|
|||
// one already defined in the build project.
|
||||
BuildspecOverride *string `locationName:"buildspecOverride" type:"string"`
|
||||
|
||||
// A ProjectCache object specified for this build that overrides the one defined
|
||||
// in the build project.
|
||||
CacheOverride *ProjectCache `locationName:"cacheOverride" type:"structure"`
|
||||
|
||||
// The name of a certificate for this build that overrides the one specified
|
||||
// in the build project.
|
||||
CertificateOverride *string `locationName:"certificateOverride" type:"string"`
|
||||
|
||||
// The name of a compute type for this build that overrides the one specified
|
||||
// in the build project.
|
||||
ComputeTypeOverride *string `locationName:"computeTypeOverride" type:"string" enum:"ComputeType"`
|
||||
|
||||
// A container type for this build that overrides the one specified in the build
|
||||
// project.
|
||||
EnvironmentTypeOverride *string `locationName:"environmentTypeOverride" type:"string" enum:"EnvironmentType"`
|
||||
|
||||
// A set of environment variables that overrides, for this build only, the latest
|
||||
// ones already defined in the build project.
|
||||
EnvironmentVariablesOverride []*EnvironmentVariable `locationName:"environmentVariablesOverride" type:"list"`
|
||||
|
@ -3833,11 +3869,48 @@ type StartBuildInput struct {
|
|||
// for this build only, any previous depth of history defined in the build project.
|
||||
GitCloneDepthOverride *int64 `locationName:"gitCloneDepthOverride" type:"integer"`
|
||||
|
||||
// A unique, case sensitive identifier you provide to ensure the idempotency
|
||||
// of the StartBuild request. The token is included in the StartBuild request
|
||||
// and is valid for 12 hours. If you repeat the StartBuild request with the
|
||||
// same token, but change a parameter, AWS CodeBuild returns a parameter mismatch
|
||||
// error.
|
||||
IdempotencyToken *string `locationName:"idempotencyToken" type:"string"`
|
||||
|
||||
// The name of an image for this build that overrides the one specified in the
|
||||
// build project.
|
||||
ImageOverride *string `locationName:"imageOverride" min:"1" type:"string"`
|
||||
|
||||
// Enable this flag to override the insecure SSL setting that is specified in
|
||||
// the build project. The insecure SSL setting determines whether to ignore
|
||||
// SSL warnings while connecting to the project source code. This override applies
|
||||
// only if the build's source is GitHub Enterprise.
|
||||
InsecureSslOverride *bool `locationName:"insecureSslOverride" type:"boolean"`
|
||||
|
||||
// Enable this flag to override privileged mode in the build project.
|
||||
PrivilegedModeOverride *bool `locationName:"privilegedModeOverride" type:"boolean"`
|
||||
|
||||
// The name of the AWS CodeBuild build project to start running a build.
|
||||
//
|
||||
// ProjectName is a required field
|
||||
ProjectName *string `locationName:"projectName" min:"1" type:"string" required:"true"`
|
||||
|
||||
// The name of a service role for this build that overrides the one specified
|
||||
// in the build project.
|
||||
ServiceRoleOverride *string `locationName:"serviceRoleOverride" min:"1" type:"string"`
|
||||
|
||||
// An authorization type for this build that overrides the one defined in the
|
||||
// build project. This override applies only if the build project's source is
|
||||
// BitBucket or GitHub.
|
||||
SourceAuthOverride *SourceAuth `locationName:"sourceAuthOverride" type:"structure"`
|
||||
|
||||
// A location that overrides for this build the source location for the one
|
||||
// defined in the build project.
|
||||
SourceLocationOverride *string `locationName:"sourceLocationOverride" type:"string"`
|
||||
|
||||
// A source input type for this build that overrides the source input defined
|
||||
// in the build project
|
||||
SourceTypeOverride *string `locationName:"sourceTypeOverride" type:"string" enum:"SourceType"`
|
||||
|
||||
// A version of the build input to be built, for this build only. If not specified,
|
||||
// the latest version will be used. If specified, must be one of:
|
||||
//
|
||||
|
@ -3877,12 +3950,18 @@ func (s StartBuildInput) GoString() string {
|
|||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *StartBuildInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "StartBuildInput"}
|
||||
if s.ImageOverride != nil && len(*s.ImageOverride) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ImageOverride", 1))
|
||||
}
|
||||
if s.ProjectName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("ProjectName"))
|
||||
}
|
||||
if s.ProjectName != nil && len(*s.ProjectName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ProjectName", 1))
|
||||
}
|
||||
if s.ServiceRoleOverride != nil && len(*s.ServiceRoleOverride) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ServiceRoleOverride", 1))
|
||||
}
|
||||
if s.TimeoutInMinutesOverride != nil && *s.TimeoutInMinutesOverride < 5 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutesOverride", 5))
|
||||
}
|
||||
|
@ -3891,6 +3970,11 @@ func (s *StartBuildInput) Validate() error {
|
|||
invalidParams.AddNested("ArtifactsOverride", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
if s.CacheOverride != nil {
|
||||
if err := s.CacheOverride.Validate(); err != nil {
|
||||
invalidParams.AddNested("CacheOverride", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
if s.EnvironmentVariablesOverride != nil {
|
||||
for i, v := range s.EnvironmentVariablesOverride {
|
||||
if v == nil {
|
||||
|
@ -3901,6 +3985,11 @@ func (s *StartBuildInput) Validate() error {
|
|||
}
|
||||
}
|
||||
}
|
||||
if s.SourceAuthOverride != nil {
|
||||
if err := s.SourceAuthOverride.Validate(); err != nil {
|
||||
invalidParams.AddNested("SourceAuthOverride", err.(request.ErrInvalidParams))
|
||||
}
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
|
@ -3920,6 +4009,30 @@ func (s *StartBuildInput) SetBuildspecOverride(v string) *StartBuildInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetCacheOverride sets the CacheOverride field's value.
|
||||
func (s *StartBuildInput) SetCacheOverride(v *ProjectCache) *StartBuildInput {
|
||||
s.CacheOverride = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetCertificateOverride sets the CertificateOverride field's value.
|
||||
func (s *StartBuildInput) SetCertificateOverride(v string) *StartBuildInput {
|
||||
s.CertificateOverride = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetComputeTypeOverride sets the ComputeTypeOverride field's value.
|
||||
func (s *StartBuildInput) SetComputeTypeOverride(v string) *StartBuildInput {
|
||||
s.ComputeTypeOverride = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetEnvironmentTypeOverride sets the EnvironmentTypeOverride field's value.
|
||||
func (s *StartBuildInput) SetEnvironmentTypeOverride(v string) *StartBuildInput {
|
||||
s.EnvironmentTypeOverride = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetEnvironmentVariablesOverride sets the EnvironmentVariablesOverride field's value.
|
||||
func (s *StartBuildInput) SetEnvironmentVariablesOverride(v []*EnvironmentVariable) *StartBuildInput {
|
||||
s.EnvironmentVariablesOverride = v
|
||||
|
@ -3932,12 +4045,60 @@ func (s *StartBuildInput) SetGitCloneDepthOverride(v int64) *StartBuildInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetIdempotencyToken sets the IdempotencyToken field's value.
|
||||
func (s *StartBuildInput) SetIdempotencyToken(v string) *StartBuildInput {
|
||||
s.IdempotencyToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetImageOverride sets the ImageOverride field's value.
|
||||
func (s *StartBuildInput) SetImageOverride(v string) *StartBuildInput {
|
||||
s.ImageOverride = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetInsecureSslOverride sets the InsecureSslOverride field's value.
|
||||
func (s *StartBuildInput) SetInsecureSslOverride(v bool) *StartBuildInput {
|
||||
s.InsecureSslOverride = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPrivilegedModeOverride sets the PrivilegedModeOverride field's value.
|
||||
func (s *StartBuildInput) SetPrivilegedModeOverride(v bool) *StartBuildInput {
|
||||
s.PrivilegedModeOverride = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetProjectName sets the ProjectName field's value.
|
||||
func (s *StartBuildInput) SetProjectName(v string) *StartBuildInput {
|
||||
s.ProjectName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetServiceRoleOverride sets the ServiceRoleOverride field's value.
|
||||
func (s *StartBuildInput) SetServiceRoleOverride(v string) *StartBuildInput {
|
||||
s.ServiceRoleOverride = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetSourceAuthOverride sets the SourceAuthOverride field's value.
|
||||
func (s *StartBuildInput) SetSourceAuthOverride(v *SourceAuth) *StartBuildInput {
|
||||
s.SourceAuthOverride = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetSourceLocationOverride sets the SourceLocationOverride field's value.
|
||||
func (s *StartBuildInput) SetSourceLocationOverride(v string) *StartBuildInput {
|
||||
s.SourceLocationOverride = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetSourceTypeOverride sets the SourceTypeOverride field's value.
|
||||
func (s *StartBuildInput) SetSourceTypeOverride(v string) *StartBuildInput {
|
||||
s.SourceTypeOverride = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetSourceVersion sets the SourceVersion field's value.
|
||||
func (s *StartBuildInput) SetSourceVersion(v string) *StartBuildInput {
|
||||
s.SourceVersion = &v
|
||||
|
@ -4596,6 +4757,9 @@ const (
|
|||
)
|
||||
|
||||
const (
|
||||
// EnvironmentTypeWindowsContainer is a EnvironmentType enum value
|
||||
EnvironmentTypeWindowsContainer = "WINDOWS_CONTAINER"
|
||||
|
||||
// EnvironmentTypeLinuxContainer is a EnvironmentType enum value
|
||||
EnvironmentTypeLinuxContainer = "LINUX_CONTAINER"
|
||||
)
|
||||
|
@ -4646,6 +4810,9 @@ const (
|
|||
|
||||
// PlatformTypeUbuntu is a PlatformType enum value
|
||||
PlatformTypeUbuntu = "UBUNTU"
|
||||
|
||||
// PlatformTypeWindowsServer is a PlatformType enum value
|
||||
PlatformTypeWindowsServer = "WINDOWS_SERVER"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/codebuild/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/codebuild/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "codebuild" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CodeBuild" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CodeBuild 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/codecommit/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "codecommit" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CodeCommit" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CodeCommit 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,
|
||||
|
|
7
vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go
generated
vendored
7
vendor/github.com/aws/aws-sdk-go/service/codedeploy/api.go
generated
vendored
|
@ -5105,7 +5105,8 @@ type BlueInstanceTerminationOption struct {
|
|||
Action *string `locationName:"action" type:"string" enum:"InstanceAction"`
|
||||
|
||||
// The number of minutes to wait after a successful blue/green deployment before
|
||||
// terminating instances from the original environment.
|
||||
// terminating instances from the original environment. The maximum setting
|
||||
// is 2880 minutes (2 days).
|
||||
TerminationWaitTimeInMinutes *int64 `locationName:"terminationWaitTimeInMinutes" type:"integer"`
|
||||
}
|
||||
|
||||
|
@ -8760,11 +8761,15 @@ type LoadBalancerInfo struct {
|
|||
// An array containing information about the load balancer to use for load balancing
|
||||
// in a deployment. In Elastic Load Balancing, load balancers are used with
|
||||
// Classic Load Balancers.
|
||||
//
|
||||
// Adding more than one load balancer to the array is not supported.
|
||||
ElbInfoList []*ELBInfo `locationName:"elbInfoList" type:"list"`
|
||||
|
||||
// An array containing information about the target group to use for load balancing
|
||||
// in a deployment. In Elastic Load Balancing, target groups are used with Application
|
||||
// Load Balancers.
|
||||
//
|
||||
// Adding more than one target group to the array is not supported.
|
||||
TargetGroupInfoList []*TargetGroupInfo `locationName:"targetGroupInfoList" type:"list"`
|
||||
}
|
||||
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/codedeploy/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "codedeploy" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CodeDeploy" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CodeDeploy 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/codepipeline/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/codepipeline/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "codepipeline" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CodePipeline" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CodePipeline 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/codestar/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/codestar/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "codestar" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "CodeStar" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CodeStar 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/cognitoidentity/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "cognito-identity" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Cognito Identity" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CognitoIdentity 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,
|
||||
|
|
106
vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go
generated
vendored
106
vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/api.go
generated
vendored
|
@ -9911,7 +9911,8 @@ func (c *CognitoIdentityProvider) VerifySoftwareTokenRequest(input *VerifySoftwa
|
|||
// VerifySoftwareToken API operation for Amazon Cognito Identity Provider.
|
||||
//
|
||||
// Use this API to register a user's entered TOTP code and mark the user's software
|
||||
// token MFA status as "verified" if successful,
|
||||
// token MFA status as "verified" if successful. The request takes an access
|
||||
// token or a session string, but not both.
|
||||
//
|
||||
// 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
|
||||
|
@ -11751,6 +11752,13 @@ type AdminInitiateAuthOutput struct {
|
|||
// is returned to you in the AdminInitiateAuth response if you need to pass
|
||||
// another challenge.
|
||||
//
|
||||
// * MFA_SETUP: If MFA is required, users who do not have at least one of
|
||||
// the MFA methods set up are presented with an MFA_SETUP challenge. The
|
||||
// user must set up at least one MFA type to continue to authenticate.
|
||||
//
|
||||
// * SELECT_MFA_TYPE: Selects the MFA type. Valid MFA options are SMS_MFA
|
||||
// for text SMS MFA, and SOFTWARE_TOKEN_MFA for TOTP software token MFA.
|
||||
//
|
||||
// * SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via
|
||||
// SMS.
|
||||
//
|
||||
|
@ -13555,7 +13563,7 @@ type AuthenticationResultType struct {
|
|||
// The access token.
|
||||
AccessToken *string `type:"string"`
|
||||
|
||||
// The expiration period of the authentication result.
|
||||
// The expiration period of the authentication result in seconds.
|
||||
ExpiresIn *int64 `type:"integer"`
|
||||
|
||||
// The ID token.
|
||||
|
@ -14851,7 +14859,19 @@ type CreateUserPoolClientInput struct {
|
|||
// user pool.
|
||||
AnalyticsConfiguration *AnalyticsConfigurationType `type:"structure"`
|
||||
|
||||
// A list of allowed callback URLs for the identity providers.
|
||||
// A list of allowed redirect (callback) URLs for the identity providers.
|
||||
//
|
||||
// A redirect URI must:
|
||||
//
|
||||
// * Be an absolute URI.
|
||||
//
|
||||
// * Be registered with the authorization server.
|
||||
//
|
||||
// * Not use HTTP without TLS (i.e. use HTTPS instead of HTTP).
|
||||
//
|
||||
// * Not include a fragment component.
|
||||
//
|
||||
// See OAuth 2.0 - Redirection Endpoint (https://tools.ietf.org/html/rfc6749#section-3.1.2).
|
||||
CallbackURLs []*string `type:"list"`
|
||||
|
||||
// The client name for the user pool client you would like to create.
|
||||
|
@ -14860,6 +14880,18 @@ type CreateUserPoolClientInput struct {
|
|||
ClientName *string `min:"1" type:"string" required:"true"`
|
||||
|
||||
// The default redirect URI. Must be in the CallbackURLs list.
|
||||
//
|
||||
// A redirect URI must:
|
||||
//
|
||||
// * Be an absolute URI.
|
||||
//
|
||||
// * Be registered with the authorization server.
|
||||
//
|
||||
// * Not use HTTP without TLS (i.e. use HTTPS instead of HTTP).
|
||||
//
|
||||
// * Not include a fragment component.
|
||||
//
|
||||
// See OAuth 2.0 - Redirection Endpoint (https://tools.ietf.org/html/rfc6749#section-3.1.2).
|
||||
DefaultRedirectURI *string `min:"1" type:"string"`
|
||||
|
||||
// The explicit authentication flows.
|
||||
|
@ -20488,7 +20520,7 @@ type SchemaAttributeType struct {
|
|||
// Specifies whether the attribute type is developer only.
|
||||
DeveloperOnlyAttribute *bool `type:"boolean"`
|
||||
|
||||
// Specifies whether the attribute can be changed once it has been created.
|
||||
// Specifies whether the value of the attribute can be changed.
|
||||
Mutable *bool `type:"boolean"`
|
||||
|
||||
// A schema attribute of the name type.
|
||||
|
@ -22344,7 +22376,19 @@ type UpdateUserPoolClientInput struct {
|
|||
// user pool.
|
||||
AnalyticsConfiguration *AnalyticsConfigurationType `type:"structure"`
|
||||
|
||||
// A list of allowed callback URLs for the identity providers.
|
||||
// A list of allowed redirect (callback) URLs for the identity providers.
|
||||
//
|
||||
// A redirect URI must:
|
||||
//
|
||||
// * Be an absolute URI.
|
||||
//
|
||||
// * Be registered with the authorization server.
|
||||
//
|
||||
// * Not use HTTP without TLS (i.e. use HTTPS instead of HTTP).
|
||||
//
|
||||
// * Not include a fragment component.
|
||||
//
|
||||
// See OAuth 2.0 - Redirection Endpoint (https://tools.ietf.org/html/rfc6749#section-3.1.2).
|
||||
CallbackURLs []*string `type:"list"`
|
||||
|
||||
// The ID of the client associated with the user pool.
|
||||
|
@ -22356,6 +22400,18 @@ type UpdateUserPoolClientInput struct {
|
|||
ClientName *string `min:"1" type:"string"`
|
||||
|
||||
// The default redirect URI. Must be in the CallbackURLs list.
|
||||
//
|
||||
// A redirect URI must:
|
||||
//
|
||||
// * Be an absolute URI.
|
||||
//
|
||||
// * Be registered with the authorization server.
|
||||
//
|
||||
// * Not use HTTP without TLS (i.e. use HTTPS instead of HTTP).
|
||||
//
|
||||
// * Not include a fragment component.
|
||||
//
|
||||
// See OAuth 2.0 - Redirection Endpoint (https://tools.ietf.org/html/rfc6749#section-3.1.2).
|
||||
DefaultRedirectURI *string `min:"1" type:"string"`
|
||||
|
||||
// Explicit authentication flows.
|
||||
|
@ -23084,7 +23140,19 @@ type UserPoolClientType struct {
|
|||
// The Amazon Pinpoint analytics configuration for the user pool client.
|
||||
AnalyticsConfiguration *AnalyticsConfigurationType `type:"structure"`
|
||||
|
||||
// A list of allowed callback URLs for the identity providers.
|
||||
// A list of allowed redirect (callback) URLs for the identity providers.
|
||||
//
|
||||
// A redirect URI must:
|
||||
//
|
||||
// * Be an absolute URI.
|
||||
//
|
||||
// * Be registered with the authorization server.
|
||||
//
|
||||
// * Not use HTTP without TLS (i.e. use HTTPS instead of HTTP).
|
||||
//
|
||||
// * Not include a fragment component.
|
||||
//
|
||||
// See OAuth 2.0 - Redirection Endpoint (https://tools.ietf.org/html/rfc6749#section-3.1.2).
|
||||
CallbackURLs []*string `type:"list"`
|
||||
|
||||
// The ID of the client associated with the user pool.
|
||||
|
@ -23100,6 +23168,18 @@ type UserPoolClientType struct {
|
|||
CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
|
||||
// The default redirect URI. Must be in the CallbackURLs list.
|
||||
//
|
||||
// A redirect URI must:
|
||||
//
|
||||
// * Be an absolute URI.
|
||||
//
|
||||
// * Be registered with the authorization server.
|
||||
//
|
||||
// * Not use HTTP without TLS (i.e. use HTTPS instead of HTTP).
|
||||
//
|
||||
// * Not include a fragment component.
|
||||
//
|
||||
// See OAuth 2.0 - Redirection Endpoint (https://tools.ietf.org/html/rfc6749#section-3.1.2).
|
||||
DefaultRedirectURI *string `min:"1" type:"string"`
|
||||
|
||||
// The explicit authentication flows.
|
||||
|
@ -23365,6 +23445,9 @@ type UserPoolType struct {
|
|||
// Specifies the attributes that are aliased in a user pool.
|
||||
AliasAttributes []*string `type:"list"`
|
||||
|
||||
// The Amazon Resource Name (ARN) for the user pool.
|
||||
Arn *string `min:"20" type:"string"`
|
||||
|
||||
// Specifies the attributes that are auto-verified in a user pool.
|
||||
AutoVerifiedAttributes []*string `type:"list"`
|
||||
|
||||
|
@ -23395,7 +23478,7 @@ type UserPoolType struct {
|
|||
// The ID of the user pool.
|
||||
Id *string `min:"1" type:"string"`
|
||||
|
||||
// The AWS Lambda triggers associated with tue user pool.
|
||||
// The AWS Lambda triggers associated with the user pool.
|
||||
LambdaConfig *LambdaConfigType `type:"structure"`
|
||||
|
||||
// The date the user pool was last modified.
|
||||
|
@ -23473,6 +23556,12 @@ func (s *UserPoolType) SetAliasAttributes(v []*string) *UserPoolType {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetArn sets the Arn field's value.
|
||||
func (s *UserPoolType) SetArn(v string) *UserPoolType {
|
||||
s.Arn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetAutoVerifiedAttributes sets the AutoVerifiedAttributes field's value.
|
||||
func (s *UserPoolType) SetAutoVerifiedAttributes(v []*string) *UserPoolType {
|
||||
s.AutoVerifiedAttributes = v
|
||||
|
@ -24228,6 +24317,9 @@ const (
|
|||
|
||||
// IdentityProviderTypeTypeLoginWithAmazon is a IdentityProviderTypeType enum value
|
||||
IdentityProviderTypeTypeLoginWithAmazon = "LoginWithAmazon"
|
||||
|
||||
// IdentityProviderTypeTypeOidc is a IdentityProviderTypeType enum value
|
||||
IdentityProviderTypeTypeOidc = "OIDC"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "cognito-idp" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "cognito-idp" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Cognito Identity Provider" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CognitoIdentityProvider 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/cognitosync/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/cognitosync/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "cognito-sync" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Cognito Sync" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CognitoSync 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/comprehend/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/comprehend/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "comprehend" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Comprehend" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the Comprehend client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
514
vendor/github.com/aws/aws-sdk-go/service/configservice/api.go
generated
vendored
514
vendor/github.com/aws/aws-sdk-go/service/configservice/api.go
generated
vendored
|
@ -709,6 +709,91 @@ func (c *ConfigService) DeletePendingAggregationRequestWithContext(ctx aws.Conte
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDeleteRetentionConfiguration = "DeleteRetentionConfiguration"
|
||||
|
||||
// DeleteRetentionConfigurationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteRetentionConfiguration operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 DeleteRetentionConfiguration for more information on using the DeleteRetentionConfiguration
|
||||
// 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 DeleteRetentionConfigurationRequest method.
|
||||
// req, resp := client.DeleteRetentionConfigurationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteRetentionConfiguration
|
||||
func (c *ConfigService) DeleteRetentionConfigurationRequest(input *DeleteRetentionConfigurationInput) (req *request.Request, output *DeleteRetentionConfigurationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteRetentionConfiguration,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DeleteRetentionConfigurationInput{}
|
||||
}
|
||||
|
||||
output = &DeleteRetentionConfigurationOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||
return
|
||||
}
|
||||
|
||||
// DeleteRetentionConfiguration API operation for AWS Config.
|
||||
//
|
||||
// Deletes the retention 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
|
||||
// the error.
|
||||
//
|
||||
// See the AWS API reference guide for AWS Config's
|
||||
// API operation DeleteRetentionConfiguration for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
|
||||
// One or more of the specified parameters are invalid. Verify that your parameters
|
||||
// are valid and try again.
|
||||
//
|
||||
// * ErrCodeNoSuchRetentionConfigurationException "NoSuchRetentionConfigurationException"
|
||||
// You have specified a retention configuration that does not exist.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteRetentionConfiguration
|
||||
func (c *ConfigService) DeleteRetentionConfiguration(input *DeleteRetentionConfigurationInput) (*DeleteRetentionConfigurationOutput, error) {
|
||||
req, out := c.DeleteRetentionConfigurationRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DeleteRetentionConfigurationWithContext is the same as DeleteRetentionConfiguration with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DeleteRetentionConfiguration 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 *ConfigService) DeleteRetentionConfigurationWithContext(ctx aws.Context, input *DeleteRetentionConfigurationInput, opts ...request.Option) (*DeleteRetentionConfigurationOutput, error) {
|
||||
req, out := c.DeleteRetentionConfigurationRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDeliverConfigSnapshot = "DeliverConfigSnapshot"
|
||||
|
||||
// DeliverConfigSnapshotRequest generates a "aws/request.Request" representing the
|
||||
|
@ -1985,6 +2070,98 @@ func (c *ConfigService) DescribePendingAggregationRequestsWithContext(ctx aws.Co
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDescribeRetentionConfigurations = "DescribeRetentionConfigurations"
|
||||
|
||||
// DescribeRetentionConfigurationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeRetentionConfigurations operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 DescribeRetentionConfigurations for more information on using the DescribeRetentionConfigurations
|
||||
// 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 DescribeRetentionConfigurationsRequest method.
|
||||
// req, resp := client.DescribeRetentionConfigurationsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeRetentionConfigurations
|
||||
func (c *ConfigService) DescribeRetentionConfigurationsRequest(input *DescribeRetentionConfigurationsInput) (req *request.Request, output *DescribeRetentionConfigurationsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeRetentionConfigurations,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DescribeRetentionConfigurationsInput{}
|
||||
}
|
||||
|
||||
output = &DescribeRetentionConfigurationsOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// DescribeRetentionConfigurations API operation for AWS Config.
|
||||
//
|
||||
// Returns the details of one or more retention configurations. If the retention
|
||||
// configuration name is not specified, this action returns the details for
|
||||
// all the retention configurations for that account.
|
||||
//
|
||||
// Currently, AWS Config supports only one retention configuration per region
|
||||
// in your account.
|
||||
//
|
||||
// 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 Config's
|
||||
// API operation DescribeRetentionConfigurations for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
|
||||
// One or more of the specified parameters are invalid. Verify that your parameters
|
||||
// are valid and try again.
|
||||
//
|
||||
// * ErrCodeNoSuchRetentionConfigurationException "NoSuchRetentionConfigurationException"
|
||||
// You have specified a retention configuration that does not exist.
|
||||
//
|
||||
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
|
||||
// The specified next token is invalid. Specify the nextToken string that was
|
||||
// returned in the previous response to get the next page of results.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeRetentionConfigurations
|
||||
func (c *ConfigService) DescribeRetentionConfigurations(input *DescribeRetentionConfigurationsInput) (*DescribeRetentionConfigurationsOutput, error) {
|
||||
req, out := c.DescribeRetentionConfigurationsRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DescribeRetentionConfigurationsWithContext is the same as DescribeRetentionConfigurations with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DescribeRetentionConfigurations 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 *ConfigService) DescribeRetentionConfigurationsWithContext(ctx aws.Context, input *DescribeRetentionConfigurationsInput, opts ...request.Option) (*DescribeRetentionConfigurationsOutput, error) {
|
||||
req, out := c.DescribeRetentionConfigurationsRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opGetAggregateComplianceDetailsByConfigRule = "GetAggregateComplianceDetailsByConfigRule"
|
||||
|
||||
// GetAggregateComplianceDetailsByConfigRuleRequest generates a "aws/request.Request" representing the
|
||||
|
@ -2673,7 +2850,9 @@ func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfig
|
|||
//
|
||||
// Returns a list of configuration items for the specified resource. The list
|
||||
// contains details about each state of the resource during the specified time
|
||||
// interval.
|
||||
// interval. If you specified a retention period to retain your ConfigurationItems
|
||||
// between a minimum of 30 days and a maximum of 7 years (2557 days), AWS Config
|
||||
// returns the ConfigurationItems for the specified retention period.
|
||||
//
|
||||
// The response is paginated. By default, AWS Config returns a limit of 10 configuration
|
||||
// items per page. You can customize this number with the limit parameter. The
|
||||
|
@ -3517,6 +3696,97 @@ func (c *ConfigService) PutEvaluationsWithContext(ctx aws.Context, input *PutEva
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opPutRetentionConfiguration = "PutRetentionConfiguration"
|
||||
|
||||
// PutRetentionConfigurationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutRetentionConfiguration operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 PutRetentionConfiguration for more information on using the PutRetentionConfiguration
|
||||
// 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 PutRetentionConfigurationRequest method.
|
||||
// req, resp := client.PutRetentionConfigurationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutRetentionConfiguration
|
||||
func (c *ConfigService) PutRetentionConfigurationRequest(input *PutRetentionConfigurationInput) (req *request.Request, output *PutRetentionConfigurationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutRetentionConfiguration,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &PutRetentionConfigurationInput{}
|
||||
}
|
||||
|
||||
output = &PutRetentionConfigurationOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// PutRetentionConfiguration API operation for AWS Config.
|
||||
//
|
||||
// Creates and updates the retention configuration with details about retention
|
||||
// period (number of days) that AWS Config stores your historical information.
|
||||
// The API creates the RetentionConfiguration object and names the object as
|
||||
// default. When you have a RetentionConfiguration object named default, calling
|
||||
// the API modifies the default object.
|
||||
//
|
||||
// Currently, AWS Config supports only one retention configuration per region
|
||||
// in your account.
|
||||
//
|
||||
// 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 Config's
|
||||
// API operation PutRetentionConfiguration for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
|
||||
// One or more of the specified parameters are invalid. Verify that your parameters
|
||||
// are valid and try again.
|
||||
//
|
||||
// * ErrCodeMaxNumberOfRetentionConfigurationsExceededException "MaxNumberOfRetentionConfigurationsExceededException"
|
||||
// Failed to add the retention configuration because a retention configuration
|
||||
// with that name already exists.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutRetentionConfiguration
|
||||
func (c *ConfigService) PutRetentionConfiguration(input *PutRetentionConfigurationInput) (*PutRetentionConfigurationOutput, error) {
|
||||
req, out := c.PutRetentionConfigurationRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// PutRetentionConfigurationWithContext is the same as PutRetentionConfiguration with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See PutRetentionConfiguration 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 *ConfigService) PutRetentionConfigurationWithContext(ctx aws.Context, input *PutRetentionConfigurationInput, opts ...request.Option) (*PutRetentionConfigurationOutput, error) {
|
||||
req, out := c.PutRetentionConfigurationRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opStartConfigRulesEvaluation = "StartConfigRulesEvaluation"
|
||||
|
||||
// StartConfigRulesEvaluationRequest generates a "aws/request.Request" representing the
|
||||
|
@ -3817,7 +4087,7 @@ type AccountAggregationSource struct {
|
|||
// AccountIds is a required field
|
||||
AccountIds []*string `min:"1" type:"list" required:"true"`
|
||||
|
||||
// If true, aggreagate existing AWS Config regions and future regions.
|
||||
// If true, aggregate existing AWS Config regions and future regions.
|
||||
AllAwsRegions *bool `type:"boolean"`
|
||||
|
||||
// The source regions being aggregated.
|
||||
|
@ -6094,6 +6364,61 @@ func (s DeletePendingAggregationRequestOutput) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
type DeleteRetentionConfigurationInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The name of the retention configuration to delete.
|
||||
//
|
||||
// RetentionConfigurationName is a required field
|
||||
RetentionConfigurationName *string `min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DeleteRetentionConfigurationInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DeleteRetentionConfigurationInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *DeleteRetentionConfigurationInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "DeleteRetentionConfigurationInput"}
|
||||
if s.RetentionConfigurationName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("RetentionConfigurationName"))
|
||||
}
|
||||
if s.RetentionConfigurationName != nil && len(*s.RetentionConfigurationName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("RetentionConfigurationName", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetRetentionConfigurationName sets the RetentionConfigurationName field's value.
|
||||
func (s *DeleteRetentionConfigurationInput) SetRetentionConfigurationName(v string) *DeleteRetentionConfigurationInput {
|
||||
s.RetentionConfigurationName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type DeleteRetentionConfigurationOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DeleteRetentionConfigurationOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DeleteRetentionConfigurationOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// The input for the DeliverConfigSnapshot action.
|
||||
type DeliverConfigSnapshotInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -6911,7 +7236,7 @@ func (s *DescribeConfigurationAggregatorSourcesStatusInput) SetUpdateStatus(v []
|
|||
type DescribeConfigurationAggregatorSourcesStatusOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Retuns an AggregatedSourceStatus object.
|
||||
// Returns an AggregatedSourceStatus object.
|
||||
AggregatedSourceStatusList []*AggregatedSourceStatus `type:"list"`
|
||||
|
||||
// The nextToken string returned on a previous page that you use to get the
|
||||
|
@ -7278,6 +7603,77 @@ func (s *DescribePendingAggregationRequestsOutput) SetPendingAggregationRequests
|
|||
return s
|
||||
}
|
||||
|
||||
type DescribeRetentionConfigurationsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The nextToken string returned on a previous page that you use to get the
|
||||
// next page of results in a paginated response.
|
||||
NextToken *string `type:"string"`
|
||||
|
||||
// A list of names of retention configurations for which you want details. If
|
||||
// you do not specify a name, AWS Config returns details for all the retention
|
||||
// configurations for that account.
|
||||
//
|
||||
// Currently, AWS Config supports only one retention configuration per region
|
||||
// in your account.
|
||||
RetentionConfigurationNames []*string `type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeRetentionConfigurationsInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeRetentionConfigurationsInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetNextToken sets the NextToken field's value.
|
||||
func (s *DescribeRetentionConfigurationsInput) SetNextToken(v string) *DescribeRetentionConfigurationsInput {
|
||||
s.NextToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRetentionConfigurationNames sets the RetentionConfigurationNames field's value.
|
||||
func (s *DescribeRetentionConfigurationsInput) SetRetentionConfigurationNames(v []*string) *DescribeRetentionConfigurationsInput {
|
||||
s.RetentionConfigurationNames = v
|
||||
return s
|
||||
}
|
||||
|
||||
type DescribeRetentionConfigurationsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The nextToken string returned on a previous page that you use to get the
|
||||
// next page of results in a paginated response.
|
||||
NextToken *string `type:"string"`
|
||||
|
||||
// Returns a retention configuration object.
|
||||
RetentionConfigurations []*RetentionConfiguration `type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeRetentionConfigurationsOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeRetentionConfigurationsOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetNextToken sets the NextToken field's value.
|
||||
func (s *DescribeRetentionConfigurationsOutput) SetNextToken(v string) *DescribeRetentionConfigurationsOutput {
|
||||
s.NextToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRetentionConfigurations sets the RetentionConfigurations field's value.
|
||||
func (s *DescribeRetentionConfigurationsOutput) SetRetentionConfigurations(v []*RetentionConfiguration) *DescribeRetentionConfigurationsOutput {
|
||||
s.RetentionConfigurations = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Identifies an AWS resource and indicates whether it complies with the AWS
|
||||
// Config rule that it was evaluated against.
|
||||
type Evaluation struct {
|
||||
|
@ -8520,7 +8916,7 @@ func (s *ListDiscoveredResourcesOutput) SetResourceIdentifiers(v []*ResourceIden
|
|||
type OrganizationAggregationSource struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// If true, aggreagate existing AWS Config regions and future regions.
|
||||
// If true, aggregate existing AWS Config regions and future regions.
|
||||
AllAwsRegions *bool `type:"boolean"`
|
||||
|
||||
// The source regions being aggregated.
|
||||
|
@ -9059,6 +9455,72 @@ func (s *PutEvaluationsOutput) SetFailedEvaluations(v []*Evaluation) *PutEvaluat
|
|||
return s
|
||||
}
|
||||
|
||||
type PutRetentionConfigurationInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Number of days AWS Config stores your historical information.
|
||||
//
|
||||
// Currently, only applicable to the configuration item history.
|
||||
//
|
||||
// RetentionPeriodInDays is a required field
|
||||
RetentionPeriodInDays *int64 `min:"30" type:"integer" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s PutRetentionConfigurationInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s PutRetentionConfigurationInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *PutRetentionConfigurationInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "PutRetentionConfigurationInput"}
|
||||
if s.RetentionPeriodInDays == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("RetentionPeriodInDays"))
|
||||
}
|
||||
if s.RetentionPeriodInDays != nil && *s.RetentionPeriodInDays < 30 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodInDays", 30))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetRetentionPeriodInDays sets the RetentionPeriodInDays field's value.
|
||||
func (s *PutRetentionConfigurationInput) SetRetentionPeriodInDays(v int64) *PutRetentionConfigurationInput {
|
||||
s.RetentionPeriodInDays = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type PutRetentionConfigurationOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Returns a retention configuration object.
|
||||
RetentionConfiguration *RetentionConfiguration `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s PutRetentionConfigurationOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s PutRetentionConfigurationOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetRetentionConfiguration sets the RetentionConfiguration field's value.
|
||||
func (s *PutRetentionConfigurationOutput) SetRetentionConfiguration(v *RetentionConfiguration) *PutRetentionConfigurationOutput {
|
||||
s.RetentionConfiguration = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Specifies the types of AWS resource for which AWS Config records configuration
|
||||
// changes.
|
||||
//
|
||||
|
@ -9349,6 +9811,47 @@ func (s *ResourceKey) SetResourceType(v string) *ResourceKey {
|
|||
return s
|
||||
}
|
||||
|
||||
// An object with the name of the retention configuration and the retention
|
||||
// period in days. The object stores the configuration for data retention in
|
||||
// AWS Config.
|
||||
type RetentionConfiguration struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The name of the retention configuration object.
|
||||
//
|
||||
// Name is a required field
|
||||
Name *string `min:"1" type:"string" required:"true"`
|
||||
|
||||
// Number of days AWS Config stores your historical information.
|
||||
//
|
||||
// Currently, only applicable to the configuration item history.
|
||||
//
|
||||
// RetentionPeriodInDays is a required field
|
||||
RetentionPeriodInDays *int64 `min:"30" type:"integer" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s RetentionConfiguration) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s RetentionConfiguration) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetName sets the Name field's value.
|
||||
func (s *RetentionConfiguration) SetName(v string) *RetentionConfiguration {
|
||||
s.Name = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRetentionPeriodInDays sets the RetentionPeriodInDays field's value.
|
||||
func (s *RetentionConfiguration) SetRetentionPeriodInDays(v int64) *RetentionConfiguration {
|
||||
s.RetentionPeriodInDays = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Defines which resources trigger an evaluation for an AWS Config rule. The
|
||||
// scope can include one or more resource types, a combination of a tag key
|
||||
// and value, or a combination of one resource type and one resource ID. Specify
|
||||
|
@ -10062,4 +10565,7 @@ const (
|
|||
|
||||
// ResourceTypeAwsElasticLoadBalancingLoadBalancer is a ResourceType enum value
|
||||
ResourceTypeAwsElasticLoadBalancingLoadBalancer = "AWS::ElasticLoadBalancing::LoadBalancer"
|
||||
|
||||
// ResourceTypeAwsXrayEncryptionConfig is a ResourceType enum value
|
||||
ResourceTypeAwsXrayEncryptionConfig = "AWS::XRay::EncryptionConfig"
|
||||
)
|
||||
|
|
12
vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go
generated
vendored
12
vendor/github.com/aws/aws-sdk-go/service/configservice/configserviceiface/interface.go
generated
vendored
|
@ -92,6 +92,10 @@ type ConfigServiceAPI interface {
|
|||
DeletePendingAggregationRequestWithContext(aws.Context, *configservice.DeletePendingAggregationRequestInput, ...request.Option) (*configservice.DeletePendingAggregationRequestOutput, error)
|
||||
DeletePendingAggregationRequestRequest(*configservice.DeletePendingAggregationRequestInput) (*request.Request, *configservice.DeletePendingAggregationRequestOutput)
|
||||
|
||||
DeleteRetentionConfiguration(*configservice.DeleteRetentionConfigurationInput) (*configservice.DeleteRetentionConfigurationOutput, error)
|
||||
DeleteRetentionConfigurationWithContext(aws.Context, *configservice.DeleteRetentionConfigurationInput, ...request.Option) (*configservice.DeleteRetentionConfigurationOutput, error)
|
||||
DeleteRetentionConfigurationRequest(*configservice.DeleteRetentionConfigurationInput) (*request.Request, *configservice.DeleteRetentionConfigurationOutput)
|
||||
|
||||
DeliverConfigSnapshot(*configservice.DeliverConfigSnapshotInput) (*configservice.DeliverConfigSnapshotOutput, error)
|
||||
DeliverConfigSnapshotWithContext(aws.Context, *configservice.DeliverConfigSnapshotInput, ...request.Option) (*configservice.DeliverConfigSnapshotOutput, error)
|
||||
DeliverConfigSnapshotRequest(*configservice.DeliverConfigSnapshotInput) (*request.Request, *configservice.DeliverConfigSnapshotOutput)
|
||||
|
@ -148,6 +152,10 @@ type ConfigServiceAPI interface {
|
|||
DescribePendingAggregationRequestsWithContext(aws.Context, *configservice.DescribePendingAggregationRequestsInput, ...request.Option) (*configservice.DescribePendingAggregationRequestsOutput, error)
|
||||
DescribePendingAggregationRequestsRequest(*configservice.DescribePendingAggregationRequestsInput) (*request.Request, *configservice.DescribePendingAggregationRequestsOutput)
|
||||
|
||||
DescribeRetentionConfigurations(*configservice.DescribeRetentionConfigurationsInput) (*configservice.DescribeRetentionConfigurationsOutput, error)
|
||||
DescribeRetentionConfigurationsWithContext(aws.Context, *configservice.DescribeRetentionConfigurationsInput, ...request.Option) (*configservice.DescribeRetentionConfigurationsOutput, error)
|
||||
DescribeRetentionConfigurationsRequest(*configservice.DescribeRetentionConfigurationsInput) (*request.Request, *configservice.DescribeRetentionConfigurationsOutput)
|
||||
|
||||
GetAggregateComplianceDetailsByConfigRule(*configservice.GetAggregateComplianceDetailsByConfigRuleInput) (*configservice.GetAggregateComplianceDetailsByConfigRuleOutput, error)
|
||||
GetAggregateComplianceDetailsByConfigRuleWithContext(aws.Context, *configservice.GetAggregateComplianceDetailsByConfigRuleInput, ...request.Option) (*configservice.GetAggregateComplianceDetailsByConfigRuleOutput, error)
|
||||
GetAggregateComplianceDetailsByConfigRuleRequest(*configservice.GetAggregateComplianceDetailsByConfigRuleInput) (*request.Request, *configservice.GetAggregateComplianceDetailsByConfigRuleOutput)
|
||||
|
@ -211,6 +219,10 @@ type ConfigServiceAPI interface {
|
|||
PutEvaluationsWithContext(aws.Context, *configservice.PutEvaluationsInput, ...request.Option) (*configservice.PutEvaluationsOutput, error)
|
||||
PutEvaluationsRequest(*configservice.PutEvaluationsInput) (*request.Request, *configservice.PutEvaluationsOutput)
|
||||
|
||||
PutRetentionConfiguration(*configservice.PutRetentionConfigurationInput) (*configservice.PutRetentionConfigurationOutput, error)
|
||||
PutRetentionConfigurationWithContext(aws.Context, *configservice.PutRetentionConfigurationInput, ...request.Option) (*configservice.PutRetentionConfigurationOutput, error)
|
||||
PutRetentionConfigurationRequest(*configservice.PutRetentionConfigurationInput) (*request.Request, *configservice.PutRetentionConfigurationOutput)
|
||||
|
||||
StartConfigRulesEvaluation(*configservice.StartConfigRulesEvaluationInput) (*configservice.StartConfigRulesEvaluationOutput, error)
|
||||
StartConfigRulesEvaluationWithContext(aws.Context, *configservice.StartConfigRulesEvaluationInput, ...request.Option) (*configservice.StartConfigRulesEvaluationOutput, error)
|
||||
StartConfigRulesEvaluationRequest(*configservice.StartConfigRulesEvaluationInput) (*request.Request, *configservice.StartConfigRulesEvaluationOutput)
|
||||
|
|
13
vendor/github.com/aws/aws-sdk-go/service/configservice/errors.go
generated
vendored
13
vendor/github.com/aws/aws-sdk-go/service/configservice/errors.go
generated
vendored
|
@ -126,6 +126,13 @@ const (
|
|||
// You have reached the limit of the number of delivery channels you can create.
|
||||
ErrCodeMaxNumberOfDeliveryChannelsExceededException = "MaxNumberOfDeliveryChannelsExceededException"
|
||||
|
||||
// ErrCodeMaxNumberOfRetentionConfigurationsExceededException for service response error code
|
||||
// "MaxNumberOfRetentionConfigurationsExceededException".
|
||||
//
|
||||
// Failed to add the retention configuration because a retention configuration
|
||||
// with that name already exists.
|
||||
ErrCodeMaxNumberOfRetentionConfigurationsExceededException = "MaxNumberOfRetentionConfigurationsExceededException"
|
||||
|
||||
// ErrCodeNoAvailableConfigurationRecorderException for service response error code
|
||||
// "NoAvailableConfigurationRecorderException".
|
||||
//
|
||||
|
@ -182,6 +189,12 @@ const (
|
|||
// You have specified a delivery channel that does not exist.
|
||||
ErrCodeNoSuchDeliveryChannelException = "NoSuchDeliveryChannelException"
|
||||
|
||||
// ErrCodeNoSuchRetentionConfigurationException for service response error code
|
||||
// "NoSuchRetentionConfigurationException".
|
||||
//
|
||||
// You have specified a retention configuration that does not exist.
|
||||
ErrCodeNoSuchRetentionConfigurationException = "NoSuchRetentionConfigurationException"
|
||||
|
||||
// ErrCodeOrganizationAccessDeniedException for service response error code
|
||||
// "OrganizationAccessDeniedException".
|
||||
//
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/configservice/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/configservice/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "config" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "config" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Config Service" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ConfigService 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/connect/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/connect/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "connect" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Connect" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the Connect client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "cur" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "cur" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Cost and Usage Report Service" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CostandUsageReportService client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
61
vendor/github.com/aws/aws-sdk-go/service/costexplorer/api.go
generated
vendored
61
vendor/github.com/aws/aws-sdk-go/service/costexplorer/api.go
generated
vendored
|
@ -977,9 +977,9 @@ func (s *EC2Specification) SetOfferingClass(v string) *EC2Specification {
|
|||
// DataTransfer). The Expression for that looks like this:
|
||||
//
|
||||
// { "And": [ {"Or": [ {"Dimensions": { "Key": "INSTANCE_TYPE", "Values": [
|
||||
// "m4.x.large", "c4.large" ] }}, {"Tag": { "Key": "TagName", "Values": ["Value1"]
|
||||
// } } ]}, {"Not": {"dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"]
|
||||
// }}} ] }
|
||||
// "m4.x.large", "c4.large" ] }}, {"Tags": { "Key": "TagName", "Values":
|
||||
// ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values":
|
||||
// ["DataTransfer"] }}} ] }
|
||||
//
|
||||
// Because each Expression can have only one operator, the service returns an
|
||||
// error if more than one is specified. The following example shows an Expression
|
||||
|
@ -2358,12 +2358,31 @@ func (s *RDSInstanceDetails) SetSizeFlexEligible(v bool) *RDSInstanceDetails {
|
|||
type ReservationAggregates struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The monthly cost of your RI, amortized over the RI period.
|
||||
AmortizedRecurringFee *string `type:"string"`
|
||||
|
||||
// The upfront cost of your RI, amortized over the RI period.
|
||||
AmortizedUpfrontFee *string `type:"string"`
|
||||
|
||||
// How much you saved due to purchasing and utilizing RIs. This is calculated
|
||||
// by subtracting the TotalAmortizedFee from the OnDemandCostOfRIHoursUsed.
|
||||
NetRISavings *string `type:"string"`
|
||||
|
||||
// How much your RIs would cost if charged On-Demand rates.
|
||||
OnDemandCostOfRIHoursUsed *string `type:"string"`
|
||||
|
||||
// How many RI hours that you purchased.
|
||||
PurchasedHours *string `type:"string"`
|
||||
|
||||
// The total number of RI hours that you used.
|
||||
TotalActualHours *string `type:"string"`
|
||||
|
||||
// The total cost of your RI, amortized over the RI period.
|
||||
TotalAmortizedFee *string `type:"string"`
|
||||
|
||||
// How much you could save if you use your entire reservation.
|
||||
TotalPotentialRISavings *string `type:"string"`
|
||||
|
||||
// The number of RI hours that you didn't use.
|
||||
UnusedHours *string `type:"string"`
|
||||
|
||||
|
@ -2381,6 +2400,30 @@ func (s ReservationAggregates) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
// SetAmortizedRecurringFee sets the AmortizedRecurringFee field's value.
|
||||
func (s *ReservationAggregates) SetAmortizedRecurringFee(v string) *ReservationAggregates {
|
||||
s.AmortizedRecurringFee = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetAmortizedUpfrontFee sets the AmortizedUpfrontFee field's value.
|
||||
func (s *ReservationAggregates) SetAmortizedUpfrontFee(v string) *ReservationAggregates {
|
||||
s.AmortizedUpfrontFee = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNetRISavings sets the NetRISavings field's value.
|
||||
func (s *ReservationAggregates) SetNetRISavings(v string) *ReservationAggregates {
|
||||
s.NetRISavings = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetOnDemandCostOfRIHoursUsed sets the OnDemandCostOfRIHoursUsed field's value.
|
||||
func (s *ReservationAggregates) SetOnDemandCostOfRIHoursUsed(v string) *ReservationAggregates {
|
||||
s.OnDemandCostOfRIHoursUsed = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPurchasedHours sets the PurchasedHours field's value.
|
||||
func (s *ReservationAggregates) SetPurchasedHours(v string) *ReservationAggregates {
|
||||
s.PurchasedHours = &v
|
||||
|
@ -2393,6 +2436,18 @@ func (s *ReservationAggregates) SetTotalActualHours(v string) *ReservationAggreg
|
|||
return s
|
||||
}
|
||||
|
||||
// SetTotalAmortizedFee sets the TotalAmortizedFee field's value.
|
||||
func (s *ReservationAggregates) SetTotalAmortizedFee(v string) *ReservationAggregates {
|
||||
s.TotalAmortizedFee = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetTotalPotentialRISavings sets the TotalPotentialRISavings field's value.
|
||||
func (s *ReservationAggregates) SetTotalPotentialRISavings(v string) *ReservationAggregates {
|
||||
s.TotalPotentialRISavings = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetUnusedHours sets the UnusedHours field's value.
|
||||
func (s *ReservationAggregates) SetUnusedHours(v string) *ReservationAggregates {
|
||||
s.UnusedHours = &v
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/costexplorer/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/costexplorer/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "ce" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "ce" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Cost Explorer" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the CostExplorer client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "dms" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "dms" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Database Migration Service" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the DatabaseMigrationService 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,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/datapipeline/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "datapipeline" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "datapipeline" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Data Pipeline" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the DataPipeline 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/dax/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/dax/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "dax" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "DAX" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the DAX 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,
|
||||
|
|
9
vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go
generated
vendored
9
vendor/github.com/aws/aws-sdk-go/service/devicefarm/api.go
generated
vendored
|
@ -7105,6 +7105,9 @@ type CreateRemoteAccessSessionConfiguration struct {
|
|||
|
||||
// The billing method for the remote access session.
|
||||
BillingMethod *string `locationName:"billingMethod" type:"string" enum:"BillingMethod"`
|
||||
|
||||
// An array of Amazon Resource Names (ARNs) included in the VPC endpoint configuration.
|
||||
VpceConfigurationArns []*string `locationName:"vpceConfigurationArns" type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -7123,6 +7126,12 @@ func (s *CreateRemoteAccessSessionConfiguration) SetBillingMethod(v string) *Cre
|
|||
return s
|
||||
}
|
||||
|
||||
// SetVpceConfigurationArns sets the VpceConfigurationArns field's value.
|
||||
func (s *CreateRemoteAccessSessionConfiguration) SetVpceConfigurationArns(v []*string) *CreateRemoteAccessSessionConfiguration {
|
||||
s.VpceConfigurationArns = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Creates and submits a request to start a remote access session.
|
||||
type CreateRemoteAccessSessionInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/devicefarm/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/devicefarm/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "devicefarm" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "devicefarm" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Device Farm" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the DeviceFarm 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,
|
||||
|
|
176
vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go
generated
vendored
176
vendor/github.com/aws/aws-sdk-go/service/directconnect/api.go
generated
vendored
|
@ -75,11 +75,11 @@ func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateC
|
|||
// API operation AllocateConnectionOnInterconnect for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -165,11 +165,11 @@ func (c *DirectConnect) AllocateHostedConnectionRequest(input *AllocateHostedCon
|
|||
// API operation AllocateHostedConnection for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -254,11 +254,11 @@ func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePr
|
|||
// API operation AllocatePrivateVirtualInterface for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -350,11 +350,11 @@ func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePub
|
|||
// API operation AllocatePublicVirtualInterface for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -450,11 +450,11 @@ func (c *DirectConnect) AssociateConnectionWithLagRequest(input *AssociateConnec
|
|||
// API operation AssociateConnectionWithLag for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -540,11 +540,11 @@ func (c *DirectConnect) AssociateHostedConnectionRequest(input *AssociateHostedC
|
|||
// API operation AssociateHostedConnection for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -638,11 +638,11 @@ func (c *DirectConnect) AssociateVirtualInterfaceRequest(input *AssociateVirtual
|
|||
// API operation AssociateVirtualInterface for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -726,11 +726,11 @@ func (c *DirectConnect) ConfirmConnectionRequest(input *ConfirmConnectionInput)
|
|||
// API operation ConfirmConnection for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -814,11 +814,11 @@ func (c *DirectConnect) ConfirmPrivateVirtualInterfaceRequest(input *ConfirmPriv
|
|||
// API operation ConfirmPrivateVirtualInterface for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -901,11 +901,11 @@ func (c *DirectConnect) ConfirmPublicVirtualInterfaceRequest(input *ConfirmPubli
|
|||
// API operation ConfirmPublicVirtualInterface for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -997,11 +997,11 @@ func (c *DirectConnect) CreateBGPPeerRequest(input *CreateBGPPeerInput) (req *re
|
|||
// API operation CreateBGPPeer for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -1098,11 +1098,11 @@ func (c *DirectConnect) CreateConnectionRequest(input *CreateConnectionInput) (r
|
|||
// API operation CreateConnection for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -1189,11 +1189,11 @@ func (c *DirectConnect) CreateDirectConnectGatewayRequest(input *CreateDirectCon
|
|||
// API operation CreateDirectConnectGateway for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -1275,11 +1275,11 @@ func (c *DirectConnect) CreateDirectConnectGatewayAssociationRequest(input *Crea
|
|||
// API operation CreateDirectConnectGatewayAssociation for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -1382,11 +1382,11 @@ func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput
|
|||
// API operation CreateInterconnect for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -1490,11 +1490,11 @@ func (c *DirectConnect) CreateLagRequest(input *CreateLagInput) (req *request.Re
|
|||
// API operation CreateLag for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -1576,11 +1576,11 @@ func (c *DirectConnect) CreatePrivateVirtualInterfaceRequest(input *CreatePrivat
|
|||
// API operation CreatePrivateVirtualInterface for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -1667,11 +1667,11 @@ func (c *DirectConnect) CreatePublicVirtualInterfaceRequest(input *CreatePublicV
|
|||
// API operation CreatePublicVirtualInterface for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -1753,11 +1753,11 @@ func (c *DirectConnect) DeleteBGPPeerRequest(input *DeleteBGPPeerInput) (req *re
|
|||
// API operation DeleteBGPPeer for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -1842,11 +1842,11 @@ func (c *DirectConnect) DeleteConnectionRequest(input *DeleteConnectionInput) (r
|
|||
// API operation DeleteConnection for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -1928,11 +1928,11 @@ func (c *DirectConnect) DeleteDirectConnectGatewayRequest(input *DeleteDirectCon
|
|||
// API operation DeleteDirectConnectGateway for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2013,11 +2013,11 @@ func (c *DirectConnect) DeleteDirectConnectGatewayAssociationRequest(input *Dele
|
|||
// API operation DeleteDirectConnectGatewayAssociation for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2099,11 +2099,11 @@ func (c *DirectConnect) DeleteInterconnectRequest(input *DeleteInterconnectInput
|
|||
// API operation DeleteInterconnect for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2184,11 +2184,11 @@ func (c *DirectConnect) DeleteLagRequest(input *DeleteLagInput) (req *request.Re
|
|||
// API operation DeleteLag for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2268,11 +2268,11 @@ func (c *DirectConnect) DeleteVirtualInterfaceRequest(input *DeleteVirtualInterf
|
|||
// API operation DeleteVirtualInterface for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2363,11 +2363,11 @@ func (c *DirectConnect) DescribeConnectionLoaRequest(input *DescribeConnectionLo
|
|||
// API operation DescribeConnectionLoa for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2449,11 +2449,11 @@ func (c *DirectConnect) DescribeConnectionsRequest(input *DescribeConnectionsInp
|
|||
// API operation DescribeConnections for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2540,11 +2540,11 @@ func (c *DirectConnect) DescribeConnectionsOnInterconnectRequest(input *Describe
|
|||
// API operation DescribeConnectionsOnInterconnect for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2630,11 +2630,11 @@ func (c *DirectConnect) DescribeDirectConnectGatewayAssociationsRequest(input *D
|
|||
// API operation DescribeDirectConnectGatewayAssociations for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2720,11 +2720,11 @@ func (c *DirectConnect) DescribeDirectConnectGatewayAttachmentsRequest(input *De
|
|||
// API operation DescribeDirectConnectGatewayAttachments for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2808,11 +2808,11 @@ func (c *DirectConnect) DescribeDirectConnectGatewaysRequest(input *DescribeDire
|
|||
// API operation DescribeDirectConnectGateways for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2895,11 +2895,11 @@ func (c *DirectConnect) DescribeHostedConnectionsRequest(input *DescribeHostedCo
|
|||
// API operation DescribeHostedConnections for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -2990,11 +2990,11 @@ func (c *DirectConnect) DescribeInterconnectLoaRequest(input *DescribeInterconne
|
|||
// API operation DescribeInterconnectLoa for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3076,11 +3076,11 @@ func (c *DirectConnect) DescribeInterconnectsRequest(input *DescribeInterconnect
|
|||
// API operation DescribeInterconnects for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3162,11 +3162,11 @@ func (c *DirectConnect) DescribeLagsRequest(input *DescribeLagsInput) (req *requ
|
|||
// API operation DescribeLags for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3253,11 +3253,11 @@ func (c *DirectConnect) DescribeLoaRequest(input *DescribeLoaInput) (req *reques
|
|||
// API operation DescribeLoa for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3339,11 +3339,11 @@ func (c *DirectConnect) DescribeLocationsRequest(input *DescribeLocationsInput)
|
|||
// API operation DescribeLocations for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3423,11 +3423,11 @@ func (c *DirectConnect) DescribeTagsRequest(input *DescribeTagsInput) (req *requ
|
|||
// API operation DescribeTags for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3513,11 +3513,11 @@ func (c *DirectConnect) DescribeVirtualGatewaysRequest(input *DescribeVirtualGat
|
|||
// API operation DescribeVirtualGateways for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3604,11 +3604,11 @@ func (c *DirectConnect) DescribeVirtualInterfacesRequest(input *DescribeVirtualI
|
|||
// API operation DescribeVirtualInterfaces for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3698,11 +3698,11 @@ func (c *DirectConnect) DisassociateConnectionFromLagRequest(input *Disassociate
|
|||
// API operation DisassociateConnectionFromLag for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3794,11 +3794,11 @@ func (c *DirectConnect) TagResourceRequest(input *TagResourceInput) (req *reques
|
|||
// You have reached the limit on the number of tags that can be assigned to
|
||||
// a Direct Connect resource.
|
||||
//
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3878,11 +3878,11 @@ func (c *DirectConnect) UntagResourceRequest(input *UntagResourceInput) (req *re
|
|||
// API operation UntagResource for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
@ -3976,11 +3976,11 @@ func (c *DirectConnect) UpdateLagRequest(input *UpdateLagInput) (req *request.Re
|
|||
// API operation UpdateLag for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServerException "ServerException"
|
||||
// * ErrCodeServerException "DirectConnectServerException"
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// * ErrCodeClientException "DirectConnectClientException"
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
//
|
||||
|
|
8
vendor/github.com/aws/aws-sdk-go/service/directconnect/errors.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go/service/directconnect/errors.go
generated
vendored
|
@ -5,11 +5,11 @@ package directconnect
|
|||
const (
|
||||
|
||||
// ErrCodeClientException for service response error code
|
||||
// "ClientException".
|
||||
// "DirectConnectClientException".
|
||||
//
|
||||
// The API was called with invalid parameters. The error message will contain
|
||||
// additional details about the cause.
|
||||
ErrCodeClientException = "ClientException"
|
||||
ErrCodeClientException = "DirectConnectClientException"
|
||||
|
||||
// ErrCodeDuplicateTagKeysException for service response error code
|
||||
// "DuplicateTagKeysException".
|
||||
|
@ -18,11 +18,11 @@ const (
|
|||
ErrCodeDuplicateTagKeysException = "DuplicateTagKeysException"
|
||||
|
||||
// ErrCodeServerException for service response error code
|
||||
// "ServerException".
|
||||
// "DirectConnectServerException".
|
||||
//
|
||||
// A server-side error occurred during the API call. The error message will
|
||||
// contain additional details about the cause.
|
||||
ErrCodeServerException = "ServerException"
|
||||
ErrCodeServerException = "DirectConnectServerException"
|
||||
|
||||
// ErrCodeTooManyTagsException for service response error code
|
||||
// "TooManyTagsException".
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/directconnect/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/directconnect/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "directconnect" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "directconnect" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Direct Connect" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the DirectConnect 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,
|
||||
|
|
186
vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go
generated
vendored
186
vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go
generated
vendored
|
@ -3239,6 +3239,105 @@ func (c *DirectoryService) RemoveTagsFromResourceWithContext(ctx aws.Context, in
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opResetUserPassword = "ResetUserPassword"
|
||||
|
||||
// ResetUserPasswordRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ResetUserPassword operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 ResetUserPassword for more information on using the ResetUserPassword
|
||||
// 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 ResetUserPasswordRequest method.
|
||||
// req, resp := client.ResetUserPasswordRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ResetUserPassword
|
||||
func (c *DirectoryService) ResetUserPasswordRequest(input *ResetUserPasswordInput) (req *request.Request, output *ResetUserPasswordOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opResetUserPassword,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &ResetUserPasswordInput{}
|
||||
}
|
||||
|
||||
output = &ResetUserPasswordOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// ResetUserPassword API operation for AWS Directory Service.
|
||||
//
|
||||
// Resets the password for any user in your AWS Managed Microsoft AD or Simple
|
||||
// AD 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
|
||||
// the error.
|
||||
//
|
||||
// See the AWS API reference guide for AWS Directory Service's
|
||||
// API operation ResetUserPassword for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException"
|
||||
// The specified directory is unavailable or could not be found.
|
||||
//
|
||||
// * ErrCodeUserDoesNotExistException "UserDoesNotExistException"
|
||||
// The user provided a username that does not exist in your directory.
|
||||
//
|
||||
// * ErrCodeInvalidPasswordException "InvalidPasswordException"
|
||||
// The new password provided by the user does not meet the password complexity
|
||||
// requirements defined in your directory.
|
||||
//
|
||||
// * ErrCodeUnsupportedOperationException "UnsupportedOperationException"
|
||||
// The operation is not supported.
|
||||
//
|
||||
// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException"
|
||||
// The specified entity could not be found.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// A client exception has occurred.
|
||||
//
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// An exception has occurred in AWS Directory Service.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ResetUserPassword
|
||||
func (c *DirectoryService) ResetUserPassword(input *ResetUserPasswordInput) (*ResetUserPasswordOutput, error) {
|
||||
req, out := c.ResetUserPasswordRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// ResetUserPasswordWithContext is the same as ResetUserPassword with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See ResetUserPassword 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 *DirectoryService) ResetUserPasswordWithContext(ctx aws.Context, input *ResetUserPasswordInput, opts ...request.Option) (*ResetUserPasswordOutput, error) {
|
||||
req, out := c.ResetUserPasswordRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opRestoreFromSnapshot = "RestoreFromSnapshot"
|
||||
|
||||
// RestoreFromSnapshotRequest generates a "aws/request.Request" representing the
|
||||
|
@ -7812,6 +7911,93 @@ func (s RemoveTagsFromResourceOutput) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
type ResetUserPasswordInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Identifier of the AWS Managed Microsoft AD or Simple AD directory in which
|
||||
// the user resides.
|
||||
//
|
||||
// DirectoryId is a required field
|
||||
DirectoryId *string `type:"string" required:"true"`
|
||||
|
||||
// The new password that will be reset.
|
||||
//
|
||||
// NewPassword is a required field
|
||||
NewPassword *string `min:"1" type:"string" required:"true"`
|
||||
|
||||
// The username of the user whose password will be reset.
|
||||
//
|
||||
// UserName is a required field
|
||||
UserName *string `min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s ResetUserPasswordInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s ResetUserPasswordInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *ResetUserPasswordInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "ResetUserPasswordInput"}
|
||||
if s.DirectoryId == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("DirectoryId"))
|
||||
}
|
||||
if s.NewPassword == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("NewPassword"))
|
||||
}
|
||||
if s.NewPassword != nil && len(*s.NewPassword) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("NewPassword", 1))
|
||||
}
|
||||
if s.UserName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("UserName"))
|
||||
}
|
||||
if s.UserName != nil && len(*s.UserName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetDirectoryId sets the DirectoryId field's value.
|
||||
func (s *ResetUserPasswordInput) SetDirectoryId(v string) *ResetUserPasswordInput {
|
||||
s.DirectoryId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNewPassword sets the NewPassword field's value.
|
||||
func (s *ResetUserPasswordInput) SetNewPassword(v string) *ResetUserPasswordInput {
|
||||
s.NewPassword = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetUserName sets the UserName field's value.
|
||||
func (s *ResetUserPasswordInput) SetUserName(v string) *ResetUserPasswordInput {
|
||||
s.UserName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type ResetUserPasswordOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s ResetUserPasswordOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s ResetUserPasswordOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// An object representing the inputs for the RestoreFromSnapshot operation.
|
||||
type RestoreFromSnapshotInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
|
|
@ -199,6 +199,10 @@ type DirectoryServiceAPI interface {
|
|||
RemoveTagsFromResourceWithContext(aws.Context, *directoryservice.RemoveTagsFromResourceInput, ...request.Option) (*directoryservice.RemoveTagsFromResourceOutput, error)
|
||||
RemoveTagsFromResourceRequest(*directoryservice.RemoveTagsFromResourceInput) (*request.Request, *directoryservice.RemoveTagsFromResourceOutput)
|
||||
|
||||
ResetUserPassword(*directoryservice.ResetUserPasswordInput) (*directoryservice.ResetUserPasswordOutput, error)
|
||||
ResetUserPasswordWithContext(aws.Context, *directoryservice.ResetUserPasswordInput, ...request.Option) (*directoryservice.ResetUserPasswordOutput, error)
|
||||
ResetUserPasswordRequest(*directoryservice.ResetUserPasswordInput) (*request.Request, *directoryservice.ResetUserPasswordOutput)
|
||||
|
||||
RestoreFromSnapshot(*directoryservice.RestoreFromSnapshotInput) (*directoryservice.RestoreFromSnapshotOutput, error)
|
||||
RestoreFromSnapshotWithContext(aws.Context, *directoryservice.RestoreFromSnapshotInput, ...request.Option) (*directoryservice.RestoreFromSnapshotOutput, error)
|
||||
RestoreFromSnapshotRequest(*directoryservice.RestoreFromSnapshotInput) (*request.Request, *directoryservice.RestoreFromSnapshotOutput)
|
||||
|
|
13
vendor/github.com/aws/aws-sdk-go/service/directoryservice/errors.go
generated
vendored
13
vendor/github.com/aws/aws-sdk-go/service/directoryservice/errors.go
generated
vendored
|
@ -67,6 +67,13 @@ const (
|
|||
// One or more parameters are not valid.
|
||||
ErrCodeInvalidParameterException = "InvalidParameterException"
|
||||
|
||||
// ErrCodeInvalidPasswordException for service response error code
|
||||
// "InvalidPasswordException".
|
||||
//
|
||||
// The new password provided by the user does not meet the password complexity
|
||||
// requirements defined in your directory.
|
||||
ErrCodeInvalidPasswordException = "InvalidPasswordException"
|
||||
|
||||
// ErrCodeIpRouteLimitExceededException for service response error code
|
||||
// "IpRouteLimitExceededException".
|
||||
//
|
||||
|
@ -99,4 +106,10 @@ const (
|
|||
//
|
||||
// The operation is not supported.
|
||||
ErrCodeUnsupportedOperationException = "UnsupportedOperationException"
|
||||
|
||||
// ErrCodeUserDoesNotExistException for service response error code
|
||||
// "UserDoesNotExistException".
|
||||
//
|
||||
// The user provided a username that does not exist in your directory.
|
||||
ErrCodeUserDoesNotExistException = "UserDoesNotExistException"
|
||||
)
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/directoryservice/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/directoryservice/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "ds" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "ds" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Directory Service" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the DirectoryService 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,
|
||||
|
|
114
vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go
generated
vendored
114
vendor/github.com/aws/aws-sdk-go/service/dynamodb/api.go
generated
vendored
|
@ -472,8 +472,7 @@ func (c *DynamoDB) CreateBackupRequest(input *CreateBackupInput) (req *request.R
|
|||
// table. The backups is either being created, deleted or restored to a table.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -558,20 +557,17 @@ func (c *DynamoDB) CreateGlobalTableRequest(input *CreateGlobalTableInput) (req
|
|||
// relationship between two or more DynamoDB tables with the same table name
|
||||
// in the provided regions.
|
||||
//
|
||||
// Tables can only be added as the replicas of a global table group under the
|
||||
// following conditions:
|
||||
// If you want to add a new replica table to a global table, each of the following
|
||||
// conditions must be true:
|
||||
//
|
||||
// * The tables must have the same name.
|
||||
// * The table must have the same primary key as all of the other replicas.
|
||||
//
|
||||
// * The tables must contain no items.
|
||||
// * The table must have the same name as all of the other replicas.
|
||||
//
|
||||
// * The tables must have the same hash key and sort key (if present).
|
||||
//
|
||||
// * The tables must have DynamoDB Streams enabled (NEW_AND_OLD_IMAGES).
|
||||
//
|
||||
//
|
||||
// * The tables must have same provisioned and maximum write capacity units.
|
||||
// * The table must have DynamoDB Streams enabled, with the stream containing
|
||||
// both the new and the old images of the item.
|
||||
//
|
||||
// * None of the replica tables in the global table can contain any data.
|
||||
//
|
||||
// If global secondary indexes are specified, then the following conditions
|
||||
// must also be met:
|
||||
|
@ -581,8 +577,15 @@ func (c *DynamoDB) CreateGlobalTableRequest(input *CreateGlobalTableInput) (req
|
|||
// * The global secondary indexes must have the same hash key and sort key
|
||||
// (if present).
|
||||
//
|
||||
// * The global secondary indexes must have the same provisioned and maximum
|
||||
// write capacity units.
|
||||
// Write capacity settings should be set consistently across your replica tables
|
||||
// and secondary indexes. DynamoDB strongly recommends enabling auto scaling
|
||||
// to manage the write capacity settings for all of your global tables replicas
|
||||
// and indexes.
|
||||
//
|
||||
// If you prefer to manage write capacity settings manually, you should provision
|
||||
// equal replicated write capacity units to your replica tables. You should
|
||||
// also provision equal replicated write capacity units to matching secondary
|
||||
// indexes across your global table.
|
||||
//
|
||||
// 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
|
||||
|
@ -593,8 +596,7 @@ func (c *DynamoDB) CreateGlobalTableRequest(input *CreateGlobalTableInput) (req
|
|||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -712,8 +714,7 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req
|
|||
// in the CREATING state.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -814,8 +815,7 @@ func (c *DynamoDB) DeleteBackupRequest(input *DeleteBackupInput) (req *request.R
|
|||
// table. The backups is either being created, deleted or restored to a table.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -1044,8 +1044,7 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req
|
|||
// might not be specified correctly, or its status might not be ACTIVE.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -2642,8 +2641,7 @@ func (c *DynamoDB) RestoreTableFromBackupRequest(input *RestoreTableFromBackupIn
|
|||
// table. The backups is either being created, deleted or restored to a table.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -2782,8 +2780,7 @@ func (c *DynamoDB) RestoreTableToPointInTimeRequest(input *RestoreTableToPointIn
|
|||
// A target table with the specified name is either being created or deleted.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -3064,8 +3061,7 @@ func (c *DynamoDB) TagResourceRequest(input *TagResourceInput) (req *request.Req
|
|||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -3172,8 +3168,7 @@ func (c *DynamoDB) UntagResourceRequest(input *UntagResourceInput) (req *request
|
|||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -3490,8 +3485,7 @@ func (c *DynamoDB) UpdateGlobalTableSettingsRequest(input *UpdateGlobalTableSett
|
|||
// The operation tried to access a nonexistent index.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -3719,8 +3713,7 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req
|
|||
// might not be specified correctly, or its status might not be ACTIVE.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -3848,8 +3841,7 @@ func (c *DynamoDB) UpdateTimeToLiveRequest(input *UpdateTimeToLiveInput) (req *r
|
|||
// might not be specified correctly, or its status might not be ACTIVE.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
@ -6312,7 +6304,8 @@ func (s *DescribeContinuousBackupsInput) SetTableName(v string) *DescribeContinu
|
|||
type DescribeContinuousBackupsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// ContinuousBackupsDescription can be one of the following : ENABLED, DISABLED.
|
||||
// Represents the continuous backups and point in time recovery settings on
|
||||
// the table.
|
||||
ContinuousBackupsDescription *ContinuousBackupsDescription `type:"structure"`
|
||||
}
|
||||
|
||||
|
@ -7870,7 +7863,10 @@ func (s *KeysAndAttributes) SetProjectionExpression(v string) *KeysAndAttributes
|
|||
type ListBackupsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// LastEvaluatedBackupARN returned by the previous ListBackups call.
|
||||
// LastEvaluatedBackupArn is the ARN of the backup last evaluated when the current
|
||||
// page of results was returned, inclusive of the current page of results. This
|
||||
// value may be specified as the ExclusiveStartBackupArn of a new ListBackups
|
||||
// operation in order to fetch the next page of results.
|
||||
ExclusiveStartBackupArn *string `min:"37" type:"string"`
|
||||
|
||||
// Maximum number of backups to return at once.
|
||||
|
@ -7952,7 +7948,17 @@ type ListBackupsOutput struct {
|
|||
// List of BackupSummary objects.
|
||||
BackupSummaries []*BackupSummary `type:"list"`
|
||||
|
||||
// Last evaluated BackupARN.
|
||||
// The ARN of the backup last evaluated when the current page of results was
|
||||
// returned, inclusive of the current page of results. This value may be specified
|
||||
// as the ExclusiveStartBackupArn of a new ListBackups operation in order to
|
||||
// fetch the next page of results.
|
||||
//
|
||||
// If LastEvaluatedBackupArn is empty, then the last page of results has been
|
||||
// processed and there are no more results to be retrieved.
|
||||
//
|
||||
// If LastEvaluatedBackupArn is not empty, this may or may not indicate there
|
||||
// is more data to be returned. All results are guaranteed to have been returned
|
||||
// if and only if no value for LastEvaluatedBackupArn is returned.
|
||||
LastEvaluatedBackupArn *string `min:"37" type:"string"`
|
||||
}
|
||||
|
||||
|
@ -10291,6 +10297,16 @@ func (s *RestoreTableToPointInTimeOutput) SetTableDescription(v *TableDescriptio
|
|||
type SSEDescription struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The KMS master key ARN used for the KMS encryption.
|
||||
KMSMasterKeyArn *string `type:"string"`
|
||||
|
||||
// Server-side encryption type:
|
||||
//
|
||||
// * AES256 - Server-side encryption which uses the AES256 algorithm.
|
||||
//
|
||||
// * KMS - Server-side encryption which uses AWS Key Management Service.
|
||||
SSEType *string `type:"string" enum:"SSEType"`
|
||||
|
||||
// The current state of server-side encryption:
|
||||
//
|
||||
// * ENABLING - Server-side encryption is being enabled.
|
||||
|
@ -10313,6 +10329,18 @@ func (s SSEDescription) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
// SetKMSMasterKeyArn sets the KMSMasterKeyArn field's value.
|
||||
func (s *SSEDescription) SetKMSMasterKeyArn(v string) *SSEDescription {
|
||||
s.KMSMasterKeyArn = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetSSEType sets the SSEType field's value.
|
||||
func (s *SSEDescription) SetSSEType(v string) *SSEDescription {
|
||||
s.SSEType = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetStatus sets the Status field's value.
|
||||
func (s *SSEDescription) SetStatus(v string) *SSEDescription {
|
||||
s.Status = &v
|
||||
|
@ -12930,6 +12958,14 @@ const (
|
|||
SSEStatusDisabled = "DISABLED"
|
||||
)
|
||||
|
||||
const (
|
||||
// SSETypeAes256 is a SSEType enum value
|
||||
SSETypeAes256 = "AES256"
|
||||
|
||||
// SSETypeKms is a SSEType enum value
|
||||
SSETypeKms = "KMS"
|
||||
)
|
||||
|
||||
const (
|
||||
// ScalarAttributeTypeS is a ScalarAttributeType enum value
|
||||
ScalarAttributeTypeS = "S"
|
||||
|
|
11
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go
generated
vendored
11
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode.go
generated
vendored
|
@ -1,6 +1,7 @@
|
|||
package dynamodbattribute
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"strconv"
|
||||
|
@ -538,6 +539,16 @@ func (d *Decoder) decodeString(s *string, v reflect.Value, fieldTag tag) error {
|
|||
switch v.Kind() {
|
||||
case reflect.String:
|
||||
v.SetString(*s)
|
||||
case reflect.Slice:
|
||||
// To maintain backwards compatibility with the ConvertFrom family of methods
|
||||
// which converted []byte into base64-encoded strings if the input was typed
|
||||
if v.Type() == byteSliceType {
|
||||
decoded, err := base64.StdEncoding.DecodeString(*s)
|
||||
if err != nil {
|
||||
return &UnmarshalError{Err: err, Value: "string", Type: v.Type()}
|
||||
}
|
||||
v.SetBytes(decoded)
|
||||
}
|
||||
case reflect.Interface:
|
||||
// Ensure type aliasing is handled properly
|
||||
v.Set(reflect.ValueOf(*s).Convert(v.Type()))
|
||||
|
|
24
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode_test.go
generated
vendored
24
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/decode_test.go
generated
vendored
|
@ -234,6 +234,30 @@ func TestUnmarshalListError(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestUnmarshalConvertToData(t *testing.T) {
|
||||
type T struct {
|
||||
Int int
|
||||
Str string
|
||||
ByteSlice []byte
|
||||
StrSlice []string
|
||||
}
|
||||
|
||||
exp := T{
|
||||
Int: 42,
|
||||
Str: "foo",
|
||||
ByteSlice: []byte{42, 97, 83},
|
||||
StrSlice: []string{"cat", "dog"},
|
||||
}
|
||||
av, err := ConvertToMap(exp)
|
||||
if err != nil {
|
||||
t.Fatalf("expect no error, got %v", err)
|
||||
}
|
||||
|
||||
var act T
|
||||
err = UnmarshalMap(av, &act)
|
||||
assertConvertTest(t, 0, act, exp, err, nil)
|
||||
}
|
||||
|
||||
func TestUnmarshalMapShared(t *testing.T) {
|
||||
for i, c := range sharedMapTestCases {
|
||||
err := UnmarshalMap(c.in, c.actual)
|
||||
|
|
8
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute/doc.go
generated
vendored
|
@ -81,7 +81,7 @@
|
|||
// The ConvertTo, ConvertToList, ConvertToMap, ConvertFrom, ConvertFromMap
|
||||
// and ConvertFromList methods have been deprecated. The Marshal and Unmarshal
|
||||
// functions should be used instead. The ConvertTo|From marshallers do not
|
||||
// support BinarySet, NumberSet, nor StringSets, and will incorrect marshal
|
||||
// support BinarySet, NumberSet, nor StringSets, and will incorrectly marshal
|
||||
// binary data fields in structs as base64 strings.
|
||||
//
|
||||
// The Marshal and Unmarshal functions correct this behavior, and removes
|
||||
|
@ -91,5 +91,11 @@
|
|||
// replaced with have been replaced with dynamodbattribute.Marshaler and
|
||||
// dynamodbattribute.Unmarshaler interfaces.
|
||||
//
|
||||
// The Unmarshal functions are backwards compatible with data marshalled by
|
||||
// ConvertTo*, but the reverse is not true: objects marshalled using Marshal
|
||||
// are not necessarily usable by ConvertFrom*. This backward compatibility is
|
||||
// intended to assist with incremental upgrading of data following a switch
|
||||
// away from the Convert* family of functions.
|
||||
//
|
||||
// `time.Time` is marshaled as RFC3339 format.
|
||||
package dynamodbattribute
|
||||
|
|
3
vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go
generated
vendored
|
@ -70,8 +70,7 @@ const (
|
|||
// ErrCodeLimitExceededException for service response error code
|
||||
// "LimitExceededException".
|
||||
//
|
||||
// Up to 50 CreateBackup operations are allowed per second, per account. There
|
||||
// is no limit to the number of daily on-demand backups that can be taken.
|
||||
// There is no limit to the number of daily on-demand backups that can be taken.
|
||||
//
|
||||
// Up to 10 simultaneous table operations are allowed per account. These operations
|
||||
// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup,
|
||||
|
|
5
vendor/github.com/aws/aws-sdk-go/service/dynamodb/expression/expression.go
generated
vendored
5
vendor/github.com/aws/aws-sdk-go/service/dynamodb/expression/expression.go
generated
vendored
|
@ -488,7 +488,10 @@ func (e Expression) returnExpression(expressionType expressionType) *string {
|
|||
if e.expressionMap == nil {
|
||||
return nil
|
||||
}
|
||||
return aws.String(e.expressionMap[expressionType])
|
||||
if s, exists := e.expressionMap[expressionType]; exists {
|
||||
return &s
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// exprNode are the generic nodes that represents both Operands and
|
||||
|
|
33
vendor/github.com/aws/aws-sdk-go/service/dynamodb/expression/expression_test.go
generated
vendored
33
vendor/github.com/aws/aws-sdk-go/service/dynamodb/expression/expression_test.go
generated
vendored
|
@ -978,6 +978,39 @@ func TestBuildExpressionString(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestReturnExpression(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
input Expression
|
||||
expected *string
|
||||
}{
|
||||
{
|
||||
name: "projection exists",
|
||||
input: Expression{
|
||||
expressionMap: map[expressionType]string{
|
||||
projection: "#0, #1, #2",
|
||||
},
|
||||
},
|
||||
expected: aws.String("#0, #1, #2"),
|
||||
},
|
||||
{
|
||||
name: "projection not exists",
|
||||
input: Expression{
|
||||
expressionMap: map[expressionType]string{},
|
||||
},
|
||||
expected: nil,
|
||||
},
|
||||
}
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
actual := c.input.returnExpression(projection)
|
||||
if e, a := c.expected, actual; !reflect.DeepEqual(a, e) {
|
||||
t.Errorf("expect %v, got %v", e, a)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestAliasValue(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/dynamodb/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "dynamodb" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "DynamoDB" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the DynamoDB 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/dynamodbstreams/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "streams.dynamodb" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "DynamoDB Streams" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the DynamoDBStreams client with a session.
|
||||
|
@ -58,6 +59,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
|||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
|
|
298
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
generated
vendored
298
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
generated
vendored
|
@ -2268,11 +2268,7 @@ func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequest
|
|||
|
||||
// CancelSpotInstanceRequests API operation for Amazon Elastic Compute Cloud.
|
||||
//
|
||||
// Cancels one or more Spot Instance requests. Spot Instances are instances
|
||||
// that Amazon EC2 starts on your behalf when the maximum price that you specify
|
||||
// exceeds the current Spot price. For more information, see Spot Instance Requests
|
||||
// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) in
|
||||
// the Amazon EC2 User Guide for Linux Instances.
|
||||
// Cancels one or more Spot Instance requests.
|
||||
//
|
||||
// Canceling a Spot Instance request does not terminate running Spot Instances
|
||||
// associated with the request.
|
||||
|
@ -3129,7 +3125,7 @@ func (c *EC2) CreateFleetRequest(input *CreateFleetInput) (req *request.Request,
|
|||
// You can create a single EC2 Fleet that includes multiple launch specifications
|
||||
// that vary by instance type, AMI, Availability Zone, or subnet.
|
||||
//
|
||||
// For more information, see Launching an EC2 Fleet (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-launch-ec2-fleet.html)
|
||||
// For more information, see Launching an EC2 Fleet (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html)
|
||||
// in the Amazon Elastic Compute Cloud User Guide.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
|
@ -3851,11 +3847,12 @@ func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *reques
|
|||
|
||||
// CreateNatGateway API operation for Amazon Elastic Compute Cloud.
|
||||
//
|
||||
// Creates a NAT gateway in the specified subnet. A NAT gateway can be used
|
||||
// to enable instances in a private subnet to connect to the Internet. This
|
||||
// action creates a network interface in the specified subnet with a private
|
||||
// IP address from the IP address range of the subnet. For more information,
|
||||
// see NAT Gateways (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html)
|
||||
// Creates a NAT gateway in the specified public subnet. This action creates
|
||||
// a network interface in the specified subnet with a private IP address from
|
||||
// the IP address range of the subnet. Internet-bound traffic from a private
|
||||
// subnet can be routed to the NAT gateway, therefore enabling instances in
|
||||
// the private subnet to connect to the internet. For more information, see
|
||||
// NAT Gateways (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html)
|
||||
// in the Amazon Virtual Private Cloud User Guide.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
|
@ -4178,8 +4175,8 @@ func (c *EC2) CreateNetworkInterfacePermissionRequest(input *CreateNetworkInterf
|
|||
|
||||
// CreateNetworkInterfacePermission API operation for Amazon Elastic Compute Cloud.
|
||||
//
|
||||
// Grants an AWS authorized partner account permission to attach the specified
|
||||
// network interface to an instance in their account.
|
||||
// Grants an AWS-authorized account permission to attach the specified network
|
||||
// interface to an instance in their account.
|
||||
//
|
||||
// You can grant permission to a single AWS account only, and only one account
|
||||
// at a time.
|
||||
|
@ -13674,11 +13671,7 @@ func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceReq
|
|||
|
||||
// DescribeSpotInstanceRequests API operation for Amazon Elastic Compute Cloud.
|
||||
//
|
||||
// Describes the Spot Instance requests that belong to your account. Spot Instances
|
||||
// are instances that Amazon EC2 launches when the Spot price that you specify
|
||||
// exceeds the current Spot price. For more information, see Spot Instance Requests
|
||||
// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html) in
|
||||
// the Amazon EC2 User Guide for Linux Instances.
|
||||
// Describes the specified Spot Instance requests.
|
||||
//
|
||||
// You can use DescribeSpotInstanceRequests to find a running Spot Instance
|
||||
// by examining the response. If the status of the Spot Instance is fulfilled,
|
||||
|
@ -16974,24 +16967,23 @@ func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *reques
|
|||
|
||||
// GetConsoleOutput API operation for Amazon Elastic Compute Cloud.
|
||||
//
|
||||
// Gets the console output for the specified instance.
|
||||
// Gets the console output for the specified instance. For Linux instances,
|
||||
// the instance console output displays the exact console output that would
|
||||
// normally be displayed on a physical monitor attached to a computer. For Windows
|
||||
// instances, the instance console output includes output from the EC2Config
|
||||
// service.
|
||||
//
|
||||
// Instances do not have a physical monitor through which you can view their
|
||||
// console output. They also lack physical controls that allow you to power
|
||||
// up, reboot, or shut them down. To allow these actions, we provide them through
|
||||
// the Amazon EC2 API and command line interface.
|
||||
// GetConsoleOutput returns up to 64 KB of console output shortly after it's
|
||||
// generated by the instance.
|
||||
//
|
||||
// Instance console output is buffered and posted shortly after instance boot,
|
||||
// reboot, and termination. Amazon EC2 preserves the most recent 64 KB output,
|
||||
// which is available for at least one hour after the most recent post.
|
||||
// By default, the console output returns buffered information that was posted
|
||||
// shortly after an instance transition state (start, stop, reboot, or terminate).
|
||||
// This information is available for at least one hour after the most recent
|
||||
// post.
|
||||
//
|
||||
// For Linux instances, the instance console output displays the exact console
|
||||
// output that would normally be displayed on a physical monitor attached to
|
||||
// a computer. This output is buffered because the instance produces it and
|
||||
// then posts it to a store where the instance's owner can retrieve it.
|
||||
//
|
||||
// For Windows instances, the instance console output includes output from the
|
||||
// EC2Config service.
|
||||
// You can optionally retrieve the latest serial console output at any time
|
||||
// during the instance lifecycle. This option is only supported on C5, M5, and
|
||||
// i3.metal instances.
|
||||
//
|
||||
// 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
|
||||
|
@ -21367,9 +21359,9 @@ func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req
|
|||
|
||||
// RequestSpotInstances API operation for Amazon Elastic Compute Cloud.
|
||||
//
|
||||
// Creates a Spot Instance request. Spot Instances are instances that Amazon
|
||||
// EC2 launches when the maximum price that you specify exceeds the current
|
||||
// Spot price. For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
|
||||
// Creates a Spot Instance request.
|
||||
//
|
||||
// For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
|
||||
// in the Amazon EC2 User Guide for Linux Instances.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
|
@ -26672,9 +26664,7 @@ type ConversionTask struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// The ID of the conversion task.
|
||||
//
|
||||
// ConversionTaskId is a required field
|
||||
ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`
|
||||
ConversionTaskId *string `locationName:"conversionTaskId" type:"string"`
|
||||
|
||||
// The time when the task expires. If the upload isn't complete before the expiration
|
||||
// time, we automatically cancel the task.
|
||||
|
@ -26689,9 +26679,7 @@ type ConversionTask struct {
|
|||
ImportVolume *ImportVolumeTaskDetails `locationName:"importVolume" type:"structure"`
|
||||
|
||||
// The state of the conversion task.
|
||||
//
|
||||
// State is a required field
|
||||
State *string `locationName:"state" type:"string" required:"true" enum:"ConversionTaskState"`
|
||||
State *string `locationName:"state" type:"string" enum:"ConversionTaskState"`
|
||||
|
||||
// The status message related to the conversion task.
|
||||
StatusMessage *string `locationName:"statusMessage" type:"string"`
|
||||
|
@ -27222,6 +27210,75 @@ func (s *CopySnapshotOutput) SetSnapshotId(v string) *CopySnapshotOutput {
|
|||
return s
|
||||
}
|
||||
|
||||
// The CPU options for the instance.
|
||||
type CpuOptions struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The number of CPU cores for the instance.
|
||||
CoreCount *int64 `locationName:"coreCount" type:"integer"`
|
||||
|
||||
// The number of threads per CPU core.
|
||||
ThreadsPerCore *int64 `locationName:"threadsPerCore" type:"integer"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s CpuOptions) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s CpuOptions) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetCoreCount sets the CoreCount field's value.
|
||||
func (s *CpuOptions) SetCoreCount(v int64) *CpuOptions {
|
||||
s.CoreCount = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetThreadsPerCore sets the ThreadsPerCore field's value.
|
||||
func (s *CpuOptions) SetThreadsPerCore(v int64) *CpuOptions {
|
||||
s.ThreadsPerCore = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// The CPU options for the instance. Both the core count and threads per core
|
||||
// must be specified in the request.
|
||||
type CpuOptionsRequest struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The number of CPU cores for the instance.
|
||||
CoreCount *int64 `type:"integer"`
|
||||
|
||||
// The number of threads per CPU core. To disable Intel Hyper-Threading Technology
|
||||
// for the instance, specify a value of 1. Otherwise, specify the default value
|
||||
// of 2.
|
||||
ThreadsPerCore *int64 `type:"integer"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s CpuOptionsRequest) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s CpuOptionsRequest) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetCoreCount sets the CoreCount field's value.
|
||||
func (s *CpuOptionsRequest) SetCoreCount(v int64) *CpuOptionsRequest {
|
||||
s.CoreCount = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetThreadsPerCore sets the ThreadsPerCore field's value.
|
||||
func (s *CpuOptionsRequest) SetThreadsPerCore(v int64) *CpuOptionsRequest {
|
||||
s.ThreadsPerCore = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Contains the parameters for CreateCustomerGateway.
|
||||
type CreateCustomerGatewayInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -28831,12 +28888,12 @@ type CreateNetworkAclEntryInput struct {
|
|||
PortRange *PortRange `locationName:"portRange" type:"structure"`
|
||||
|
||||
// The protocol. A value of -1 or all means all protocols. If you specify all,
|
||||
// -1, or a protocol number other than tcp, udp, or icmp, traffic on all ports
|
||||
// is allowed, regardless of any ports or ICMP types or codes you specify. If
|
||||
// you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block, traffic
|
||||
// for all ICMP types and codes allowed, regardless of any that you specify.
|
||||
// If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block, you must
|
||||
// specify an ICMP type and code.
|
||||
// -1, or a protocol number other than 6 (tcp), 17 (udp), or 1 (icmp), traffic
|
||||
// on all ports is allowed, regardless of any ports or ICMP types or codes you
|
||||
// specify. If you specify protocol 58 (ICMPv6) and specify an IPv4 CIDR block,
|
||||
// traffic for all ICMP types and codes allowed, regardless of any that you
|
||||
// specify. If you specify protocol 58 (ICMPv6) and specify an IPv6 CIDR block,
|
||||
// you must specify an ICMP type and code.
|
||||
//
|
||||
// Protocol is a required field
|
||||
Protocol *string `locationName:"protocol" type:"string" required:"true"`
|
||||
|
@ -37550,7 +37607,7 @@ type DescribeInstancesInput struct {
|
|||
// The maximum number of results to return in a single call. To retrieve the
|
||||
// remaining results, make another call with the returned NextToken value. This
|
||||
// value can be between 5 and 1000. You cannot specify this parameter and the
|
||||
// instance IDs parameter or tag filters in the same call.
|
||||
// instance IDs parameter in the same call.
|
||||
MaxResults *int64 `locationName:"maxResults" type:"integer"`
|
||||
|
||||
// The token to request the next page of results.
|
||||
|
@ -44764,9 +44821,7 @@ type DiskImageDescription struct {
|
|||
Checksum *string `locationName:"checksum" type:"string"`
|
||||
|
||||
// The disk image format.
|
||||
//
|
||||
// Format is a required field
|
||||
Format *string `locationName:"format" type:"string" required:"true" enum:"DiskImageFormat"`
|
||||
Format *string `locationName:"format" type:"string" enum:"DiskImageFormat"`
|
||||
|
||||
// A presigned URL for the import manifest stored in Amazon S3. For information
|
||||
// about creating a presigned URL for an Amazon S3 object, read the "Query String
|
||||
|
@ -44776,14 +44831,10 @@ type DiskImageDescription struct {
|
|||
//
|
||||
// For information about the import manifest referenced by this API action,
|
||||
// see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
|
||||
//
|
||||
// ImportManifestUrl is a required field
|
||||
ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
|
||||
ImportManifestUrl *string `locationName:"importManifestUrl" type:"string"`
|
||||
|
||||
// The size of the disk image, in GiB.
|
||||
//
|
||||
// Size is a required field
|
||||
Size *int64 `locationName:"size" type:"long" required:"true"`
|
||||
Size *int64 `locationName:"size" type:"long"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -44899,9 +44950,7 @@ type DiskImageVolumeDescription struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// The volume identifier.
|
||||
//
|
||||
// Id is a required field
|
||||
Id *string `locationName:"id" type:"string" required:"true"`
|
||||
Id *string `locationName:"id" type:"string"`
|
||||
|
||||
// The size of the volume, in GiB.
|
||||
Size *int64 `locationName:"size" type:"long"`
|
||||
|
@ -46857,6 +46906,11 @@ type GetConsoleOutputInput struct {
|
|||
//
|
||||
// InstanceId is a required field
|
||||
InstanceId *string `type:"string" required:"true"`
|
||||
|
||||
// When enabled, retrieves the latest console output for the instance.
|
||||
//
|
||||
// Default: disabled (false)
|
||||
Latest *bool `type:"boolean"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -46894,6 +46948,12 @@ func (s *GetConsoleOutputInput) SetInstanceId(v string) *GetConsoleOutputInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetLatest sets the Latest field's value.
|
||||
func (s *GetConsoleOutputInput) SetLatest(v bool) *GetConsoleOutputInput {
|
||||
s.Latest = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Contains the output of GetConsoleOutput.
|
||||
type GetConsoleOutputOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -46901,11 +46961,11 @@ type GetConsoleOutputOutput struct {
|
|||
// The ID of the instance.
|
||||
InstanceId *string `locationName:"instanceId" type:"string"`
|
||||
|
||||
// The console output, Base64-encoded. If using a command line tool, the tool
|
||||
// decodes the output for you.
|
||||
// The console output, base64-encoded. If you are using a command line tool,
|
||||
// the tool decodes the output for you.
|
||||
Output *string `locationName:"output" type:"string"`
|
||||
|
||||
// The time the output was last updated.
|
||||
// The time at which the output was last updated.
|
||||
Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
|
||||
}
|
||||
|
||||
|
@ -49128,9 +49188,7 @@ type ImportInstanceTaskDetails struct {
|
|||
Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
|
||||
|
||||
// One or more volumes.
|
||||
//
|
||||
// Volumes is a required field
|
||||
Volumes []*ImportInstanceVolumeDetailItem `locationName:"volumes" locationNameList:"item" type:"list" required:"true"`
|
||||
Volumes []*ImportInstanceVolumeDetailItem `locationName:"volumes" locationNameList:"item" type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -49639,27 +49697,19 @@ type ImportVolumeTaskDetails struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// The Availability Zone where the resulting volume will reside.
|
||||
//
|
||||
// AvailabilityZone is a required field
|
||||
AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
|
||||
AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
|
||||
|
||||
// The number of bytes converted so far.
|
||||
//
|
||||
// BytesConverted is a required field
|
||||
BytesConverted *int64 `locationName:"bytesConverted" type:"long" required:"true"`
|
||||
BytesConverted *int64 `locationName:"bytesConverted" type:"long"`
|
||||
|
||||
// The description you provided when starting the import volume task.
|
||||
Description *string `locationName:"description" type:"string"`
|
||||
|
||||
// The image.
|
||||
//
|
||||
// Image is a required field
|
||||
Image *DiskImageDescription `locationName:"image" type:"structure" required:"true"`
|
||||
Image *DiskImageDescription `locationName:"image" type:"structure"`
|
||||
|
||||
// The volume.
|
||||
//
|
||||
// Volume is a required field
|
||||
Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"`
|
||||
Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -49719,6 +49769,9 @@ type Instance struct {
|
|||
// The idempotency token you provided when you launched the instance, if applicable.
|
||||
ClientToken *string `locationName:"clientToken" type:"string"`
|
||||
|
||||
// The CPU options for the instance.
|
||||
CpuOptions *CpuOptions `locationName:"cpuOptions" type:"structure"`
|
||||
|
||||
// Indicates whether the instance is optimized for Amazon EBS I/O. This optimization
|
||||
// provides dedicated throughput to Amazon EBS and an optimized configuration
|
||||
// stack to provide optimal I/O performance. This optimization isn't available
|
||||
|
@ -49880,6 +49933,12 @@ func (s *Instance) SetClientToken(v string) *Instance {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetCpuOptions sets the CpuOptions field's value.
|
||||
func (s *Instance) SetCpuOptions(v *CpuOptions) *Instance {
|
||||
s.CpuOptions = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetEbsOptimized sets the EbsOptimized field's value.
|
||||
func (s *Instance) SetEbsOptimized(v bool) *Instance {
|
||||
s.EbsOptimized = &v
|
||||
|
@ -62446,6 +62505,11 @@ type RunInstancesInput struct {
|
|||
// Constraints: Maximum 64 ASCII characters
|
||||
ClientToken *string `locationName:"clientToken" type:"string"`
|
||||
|
||||
// The CPU options for the instance. For more information, see Optimizing CPU
|
||||
// Options (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html)
|
||||
// in the Amazon Elastic Compute Cloud User Guide.
|
||||
CpuOptions *CpuOptionsRequest `type:"structure"`
|
||||
|
||||
// The credit option for CPU usage of the instance. Valid values are standard
|
||||
// and unlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification.
|
||||
// For more information, see T2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html)
|
||||
|
@ -62688,6 +62752,12 @@ func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetCpuOptions sets the CpuOptions field's value.
|
||||
func (s *RunInstancesInput) SetCpuOptions(v *CpuOptionsRequest) *RunInstancesInput {
|
||||
s.CpuOptions = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetCreditSpecification sets the CreditSpecification field's value.
|
||||
func (s *RunInstancesInput) SetCreditSpecification(v *CreditSpecificationRequest) *RunInstancesInput {
|
||||
s.CreditSpecification = v
|
||||
|
@ -66380,19 +66450,23 @@ type StateReason struct {
|
|||
|
||||
// The message for the state change.
|
||||
//
|
||||
// * Server.InsufficientInstanceCapacity: There was insufficient instance
|
||||
// capacity to satisfy the launch request.
|
||||
// * Server.InsufficientInstanceCapacity: There was insufficient capacity
|
||||
// available to satisfy the launch request.
|
||||
//
|
||||
// * Server.InternalError: An internal error occurred during instance launch,
|
||||
// resulting in termination.
|
||||
// * Server.InternalError: An internal error caused the instance to terminate
|
||||
// during launch.
|
||||
//
|
||||
// * Server.ScheduledStop: The instance was stopped due to a scheduled retirement.
|
||||
//
|
||||
// * Server.SpotInstanceTermination: A Spot Instance was terminated due to
|
||||
// an increase in the Spot price.
|
||||
// * Server.SpotInstanceShutdown: The instance was stopped because the number
|
||||
// of Spot requests with a maximum price equal to or higher than the Spot
|
||||
// price exceeded available capacity or because of an increase in the Spot
|
||||
// price.
|
||||
//
|
||||
// * Client.InternalError: A client error caused the instance to terminate
|
||||
// on launch.
|
||||
// * Server.SpotInstanceTermination: The instance was terminated because
|
||||
// the number of Spot requests with a maximum price equal to or higher than
|
||||
// the Spot price exceeded available capacity or because of an increase in
|
||||
// the Spot price.
|
||||
//
|
||||
// * Client.InstanceInitiatedShutdown: The instance was shut down using the
|
||||
// shutdown -h command from the instance.
|
||||
|
@ -66400,14 +66474,17 @@ type StateReason struct {
|
|||
// * Client.InstanceTerminated: The instance was terminated or rebooted during
|
||||
// AMI creation.
|
||||
//
|
||||
// * Client.InternalError: A client error caused the instance to terminate
|
||||
// during launch.
|
||||
//
|
||||
// * Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
|
||||
//
|
||||
// * Client.UserInitiatedShutdown: The instance was shut down using the Amazon
|
||||
// EC2 API.
|
||||
//
|
||||
// * Client.VolumeLimitExceeded: The limit on the number of EBS volumes or
|
||||
// total storage was exceeded. Decrease usage or request an increase in your
|
||||
// limits.
|
||||
//
|
||||
// * Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
|
||||
// account limits.
|
||||
Message *string `locationName:"message" type:"string"`
|
||||
}
|
||||
|
||||
|
@ -66891,7 +66968,7 @@ type TagSpecification struct {
|
|||
_ struct{} `type:"structure"`
|
||||
|
||||
// The type of resource to tag. Currently, the resource types that support tagging
|
||||
// on creation are instance and volume.
|
||||
// on creation are instance, snapshot, and volume.
|
||||
ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
|
||||
|
||||
// The tags to apply to the resource.
|
||||
|
@ -70616,6 +70693,9 @@ const (
|
|||
// InstanceTypeI316xlarge is a InstanceType enum value
|
||||
InstanceTypeI316xlarge = "i3.16xlarge"
|
||||
|
||||
// InstanceTypeI3Metal is a InstanceType enum value
|
||||
InstanceTypeI3Metal = "i3.metal"
|
||||
|
||||
// InstanceTypeHi14xlarge is a InstanceType enum value
|
||||
InstanceTypeHi14xlarge = "hi1.4xlarge"
|
||||
|
||||
|
@ -70676,6 +70756,24 @@ const (
|
|||
// InstanceTypeC518xlarge is a InstanceType enum value
|
||||
InstanceTypeC518xlarge = "c5.18xlarge"
|
||||
|
||||
// InstanceTypeC5dLarge is a InstanceType enum value
|
||||
InstanceTypeC5dLarge = "c5d.large"
|
||||
|
||||
// InstanceTypeC5dXlarge is a InstanceType enum value
|
||||
InstanceTypeC5dXlarge = "c5d.xlarge"
|
||||
|
||||
// InstanceTypeC5d2xlarge is a InstanceType enum value
|
||||
InstanceTypeC5d2xlarge = "c5d.2xlarge"
|
||||
|
||||
// InstanceTypeC5d4xlarge is a InstanceType enum value
|
||||
InstanceTypeC5d4xlarge = "c5d.4xlarge"
|
||||
|
||||
// InstanceTypeC5d9xlarge is a InstanceType enum value
|
||||
InstanceTypeC5d9xlarge = "c5d.9xlarge"
|
||||
|
||||
// InstanceTypeC5d18xlarge is a InstanceType enum value
|
||||
InstanceTypeC5d18xlarge = "c5d.18xlarge"
|
||||
|
||||
// InstanceTypeCc14xlarge is a InstanceType enum value
|
||||
InstanceTypeCc14xlarge = "cc1.4xlarge"
|
||||
|
||||
|
@ -70754,6 +70852,24 @@ const (
|
|||
// InstanceTypeM524xlarge is a InstanceType enum value
|
||||
InstanceTypeM524xlarge = "m5.24xlarge"
|
||||
|
||||
// InstanceTypeM5dLarge is a InstanceType enum value
|
||||
InstanceTypeM5dLarge = "m5d.large"
|
||||
|
||||
// InstanceTypeM5dXlarge is a InstanceType enum value
|
||||
InstanceTypeM5dXlarge = "m5d.xlarge"
|
||||
|
||||
// InstanceTypeM5d2xlarge is a InstanceType enum value
|
||||
InstanceTypeM5d2xlarge = "m5d.2xlarge"
|
||||
|
||||
// InstanceTypeM5d4xlarge is a InstanceType enum value
|
||||
InstanceTypeM5d4xlarge = "m5d.4xlarge"
|
||||
|
||||
// InstanceTypeM5d12xlarge is a InstanceType enum value
|
||||
InstanceTypeM5d12xlarge = "m5d.12xlarge"
|
||||
|
||||
// InstanceTypeM5d24xlarge is a InstanceType enum value
|
||||
InstanceTypeM5d24xlarge = "m5d.24xlarge"
|
||||
|
||||
// InstanceTypeH12xlarge is a InstanceType enum value
|
||||
InstanceTypeH12xlarge = "h1.2xlarge"
|
||||
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/ec2/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/ec2/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "ec2" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "EC2" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the EC2 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/ecr/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/ecr/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "ecr" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "ECR" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ECR 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,
|
||||
|
|
221
vendor/github.com/aws/aws-sdk-go/service/ecs/api.go
generated
vendored
221
vendor/github.com/aws/aws-sdk-go/service/ecs/api.go
generated
vendored
|
@ -180,17 +180,21 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ
|
|||
// balancer are considered healthy if they are in the RUNNING state. Tasks for
|
||||
// services that do use a load balancer are considered healthy if they are in
|
||||
// the RUNNING state and the container instance they are hosted on is reported
|
||||
// as healthy by the load balancer. The default value for minimumHealthyPercent
|
||||
// is 50% in the console and 100% for the AWS CLI, the AWS SDKs, and the APIs.
|
||||
// as healthy by the load balancer. The default value for a replica service
|
||||
// for minimumHealthyPercent is 50% in the console and 100% for the AWS CLI,
|
||||
// the AWS SDKs, and the APIs. The default value for a daemon service for minimumHealthyPercent
|
||||
// is 0% for the AWS CLI, the AWS SDKs, and the APIs and 50% for the console.
|
||||
//
|
||||
// The maximumPercent parameter represents an upper limit on the number of your
|
||||
// service's tasks that are allowed in the RUNNING or PENDING state during a
|
||||
// deployment, as a percentage of the desiredCount (rounded down to the nearest
|
||||
// integer). This parameter enables you to define the deployment batch size.
|
||||
// For example, if your service has a desiredCount of four tasks and a maximumPercent
|
||||
// value of 200%, the scheduler can start four new tasks before stopping the
|
||||
// four older tasks (provided that the cluster resources required to do this
|
||||
// are available). The default value for maximumPercent is 200%.
|
||||
// For example, if your replica service has a desiredCount of four tasks and
|
||||
// a maximumPercent value of 200%, the scheduler can start four new tasks before
|
||||
// stopping the four older tasks (provided that the cluster resources required
|
||||
// to do this are available). The default value for a replica service for maximumPercent
|
||||
// is 200%. If you are using a daemon service type, the maximumPercent should
|
||||
// remain at 100%, which is the default value.
|
||||
//
|
||||
// When the service scheduler launches new tasks, it determines task placement
|
||||
// in your cluster using the following logic:
|
||||
|
@ -203,11 +207,11 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ
|
|||
// Zones in this manner (although you can choose a different placement strategy)
|
||||
// with the placementStrategy parameter):
|
||||
//
|
||||
// Sort the valid container instances by the fewest number of running tasks
|
||||
// for this service in the same Availability Zone as the instance. For example,
|
||||
// if zone A has one running service task and zones B and C each have zero,
|
||||
// valid container instances in either zone B or C are considered optimal
|
||||
// for placement.
|
||||
// Sort the valid container instances, giving priority to instances that have
|
||||
// the fewest number of running tasks for this service in their respective
|
||||
// Availability Zone. For example, if zone A has one running service task
|
||||
// and zones B and C each have zero, valid container instances in either
|
||||
// zone B or C are considered optimal for placement.
|
||||
//
|
||||
// Place the new service task on a valid container instance in an optimal Availability
|
||||
// Zone (based on the previous steps), favoring container instances with
|
||||
|
@ -4201,6 +4205,8 @@ type ContainerDefinition struct {
|
|||
// the Create a container (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.27/#create-a-container)
|
||||
// section of the Docker Remote API (https://docs.docker.com/engine/reference/api/docker_remote_api_v1.27/)
|
||||
// and the --hostname option to docker run (https://docs.docker.com/engine/reference/run/).
|
||||
//
|
||||
// The hostname parameter is not supported if using the awsvpc networkMode.
|
||||
Hostname *string `locationName:"hostname" type:"string"`
|
||||
|
||||
// The image used to start a container. This string is passed directly to the
|
||||
|
@ -4707,12 +4713,12 @@ type ContainerInstance struct {
|
|||
RegisteredResources []*Resource `locationName:"registeredResources" type:"list"`
|
||||
|
||||
// For CPU and memory resource types, this parameter describes the remaining
|
||||
// CPU and memory on the that has not already been allocated to tasks (and is
|
||||
// therefore available for new tasks). For port resource types, this parameter
|
||||
// describes the ports that were reserved by the Amazon ECS container agent
|
||||
// (at instance registration time) and any task containers that have reserved
|
||||
// port mappings on the host (with the host or bridge network mode). Any port
|
||||
// that is not specified here is available for new tasks.
|
||||
// CPU and memory that has not already been allocated to tasks and is therefore
|
||||
// available for new tasks. For port resource types, this parameter describes
|
||||
// the ports that were reserved by the Amazon ECS container agent (at instance
|
||||
// registration time) and any task containers that have reserved port mappings
|
||||
// on the host (with the host or bridge network mode). Any port that is not
|
||||
// specified here is available for new tasks.
|
||||
RemainingResources []*Resource `locationName:"remainingResources" type:"list"`
|
||||
|
||||
// The number of tasks on the container instance that are in the RUNNING status.
|
||||
|
@ -5027,8 +5033,8 @@ func (s *CreateClusterOutput) SetCluster(v *Cluster) *CreateClusterOutput {
|
|||
type CreateServiceInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Unique, case-sensitive identifier you provide to ensure the idempotency of
|
||||
// the request. Up to 32 ASCII characters are allowed.
|
||||
// Unique, case-sensitive identifier that you provide to ensure the idempotency
|
||||
// of the request. Up to 32 ASCII characters are allowed.
|
||||
ClientToken *string `locationName:"clientToken" type:"string"`
|
||||
|
||||
// The short name or full Amazon Resource Name (ARN) of the cluster on which
|
||||
|
@ -5042,9 +5048,7 @@ type CreateServiceInput struct {
|
|||
|
||||
// The number of instantiations of the specified task definition to place and
|
||||
// keep running on your cluster.
|
||||
//
|
||||
// DesiredCount is a required field
|
||||
DesiredCount *int64 `locationName:"desiredCount" type:"integer" required:"true"`
|
||||
DesiredCount *int64 `locationName:"desiredCount" type:"integer"`
|
||||
|
||||
// The period of time, in seconds, that the Amazon ECS service scheduler should
|
||||
// ignore unhealthy Elastic Load Balancing target health checks after a task
|
||||
|
@ -5077,6 +5081,13 @@ type CreateServiceInput struct {
|
|||
// balancer. When a task from this service is placed on a container instance,
|
||||
// the container instance and port combination is registered as a target in
|
||||
// the target group specified here.
|
||||
//
|
||||
// Services with tasks that use the awsvpc network mode (for example, those
|
||||
// with the Fargate launch type) only support Application Load Balancers and
|
||||
// Network Load Balancers; Classic Load Balancers are not supported. Also, when
|
||||
// you create any target groups for these services, you must choose ip as the
|
||||
// target type, not instance, because tasks that use the awsvpc network mode
|
||||
// are associated with an elastic network interface, not an Amazon EC2 instance.
|
||||
LoadBalancers []*LoadBalancer `locationName:"loadBalancers" type:"list"`
|
||||
|
||||
// The network configuration for the service. This parameter is required for
|
||||
|
@ -5121,6 +5132,25 @@ type CreateServiceInput struct {
|
|||
// in the IAM User Guide.
|
||||
Role *string `locationName:"role" type:"string"`
|
||||
|
||||
// The scheduling strategy to use for the service. For more information, see
|
||||
// Services (http://docs.aws.amazon.com/AmazonECS/latest/developerguideecs_services.html).
|
||||
//
|
||||
// There are two service scheduler strategies available:
|
||||
//
|
||||
// * REPLICA-The replica scheduling strategy places and maintains the desired
|
||||
// number of tasks across your cluster. By default, the service scheduler
|
||||
// spreads tasks across Availability Zones. You can use task placement strategies
|
||||
// and constraints to customize task placement decisions.
|
||||
//
|
||||
// * DAEMON-The daemon scheduling strategy deploys exactly one task on each
|
||||
// active container instance that meets all of the task placement constraints
|
||||
// that you specify in your cluster. When using this strategy, there is no
|
||||
// need to specify a desired number of tasks, a task placement strategy,
|
||||
// or use Service Auto Scaling policies.
|
||||
//
|
||||
// Fargate tasks do not support the DAEMON scheduling strategy.
|
||||
SchedulingStrategy *string `locationName:"schedulingStrategy" type:"string" enum:"SchedulingStrategy"`
|
||||
|
||||
// The name of your service. Up to 255 letters (uppercase and lowercase), numbers,
|
||||
// hyphens, and underscores are allowed. Service names must be unique within
|
||||
// a cluster, but you can have similarly named services in multiple clusters
|
||||
|
@ -5130,7 +5160,11 @@ type CreateServiceInput struct {
|
|||
ServiceName *string `locationName:"serviceName" type:"string" required:"true"`
|
||||
|
||||
// The details of the service discovery registries you want to assign to this
|
||||
// service. For more information, see Service Discovery (http://docs.aws.amazon.com/AmazonECS/latest/developerguideservice-discovery.html).
|
||||
// service. For more information, see Service Discovery (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html).
|
||||
//
|
||||
// Service discovery is supported for Fargate tasks if using platform version
|
||||
// v1.1.0 or later. For more information, see AWS Fargate Platform Versions
|
||||
// (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).
|
||||
ServiceRegistries []*ServiceRegistry `locationName:"serviceRegistries" type:"list"`
|
||||
|
||||
// The family and revision (family:revision) or full ARN of the task definition
|
||||
|
@ -5154,9 +5188,6 @@ func (s CreateServiceInput) GoString() string {
|
|||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *CreateServiceInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "CreateServiceInput"}
|
||||
if s.DesiredCount == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("DesiredCount"))
|
||||
}
|
||||
if s.ServiceName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("ServiceName"))
|
||||
}
|
||||
|
@ -5247,6 +5278,12 @@ func (s *CreateServiceInput) SetRole(v string) *CreateServiceInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetSchedulingStrategy sets the SchedulingStrategy field's value.
|
||||
func (s *CreateServiceInput) SetSchedulingStrategy(v string) *CreateServiceInput {
|
||||
s.SchedulingStrategy = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetServiceName sets the ServiceName field's value.
|
||||
func (s *CreateServiceInput) SetServiceName(v string) *CreateServiceInput {
|
||||
s.ServiceName = &v
|
||||
|
@ -5442,6 +5479,11 @@ type DeleteServiceInput struct {
|
|||
// is assumed.
|
||||
Cluster *string `locationName:"cluster" type:"string"`
|
||||
|
||||
// If true, allows you to delete a service even if it has not been scaled down
|
||||
// to zero tasks. It is only necessary to use this if the service is using the
|
||||
// REPLICA scheduling strategy.
|
||||
Force *bool `locationName:"force" type:"boolean"`
|
||||
|
||||
// The name of the service to delete.
|
||||
//
|
||||
// Service is a required field
|
||||
|
@ -5477,6 +5519,12 @@ func (s *DeleteServiceInput) SetCluster(v string) *DeleteServiceInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetForce sets the Force field's value.
|
||||
func (s *DeleteServiceInput) SetForce(v bool) *DeleteServiceInput {
|
||||
s.Force = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetService sets the Service field's value.
|
||||
func (s *DeleteServiceInput) SetService(v string) *DeleteServiceInput {
|
||||
s.Service = &v
|
||||
|
@ -5914,7 +5962,8 @@ type DescribeContainerInstancesInput struct {
|
|||
// default cluster is assumed.
|
||||
Cluster *string `locationName:"cluster" type:"string"`
|
||||
|
||||
// A list of container instance IDs or full ARN entries.
|
||||
// A list of up to 100 container instance IDs or full Amazon Resource Name (ARN)
|
||||
// entries.
|
||||
//
|
||||
// ContainerInstances is a required field
|
||||
ContainerInstances []*string `locationName:"containerInstances" type:"list" required:"true"`
|
||||
|
@ -6689,12 +6738,18 @@ type LinuxParameters struct {
|
|||
// command: sudo docker version | grep "Server API version"
|
||||
InitProcessEnabled *bool `locationName:"initProcessEnabled" type:"boolean"`
|
||||
|
||||
// The value for the size of the /dev/shm volume. This parameter maps to the
|
||||
// --shm-size option to docker run (https://docs.docker.com/engine/reference/run/).
|
||||
// The value for the size (in MiB) of the /dev/shm volume. This parameter maps
|
||||
// to the --shm-size option to docker run (https://docs.docker.com/engine/reference/run/).
|
||||
//
|
||||
// If you are using tasks that use the Fargate launch type, the sharedMemorySize
|
||||
// parameter is not supported.
|
||||
SharedMemorySize *int64 `locationName:"sharedMemorySize" type:"integer"`
|
||||
|
||||
// The container path, mount options, and size of the tmpfs mount. This parameter
|
||||
// maps to the --tmpfs option to docker run (https://docs.docker.com/engine/reference/run/).
|
||||
// The container path, mount options, and size (in MiB) of the tmpfs mount.
|
||||
// This parameter maps to the --tmpfs option to docker run (https://docs.docker.com/engine/reference/run/).
|
||||
//
|
||||
// If you are using tasks that use the Fargate launch type, the tmpfs parameter
|
||||
// is not supported.
|
||||
Tmpfs []*Tmpfs `locationName:"tmpfs" type:"list"`
|
||||
}
|
||||
|
||||
|
@ -7125,6 +7180,9 @@ type ListServicesInput struct {
|
|||
// This token should be treated as an opaque identifier that is only used to
|
||||
// retrieve the next items in a list and not for other programmatic purposes.
|
||||
NextToken *string `locationName:"nextToken" type:"string"`
|
||||
|
||||
// The scheduling strategy for services to list.
|
||||
SchedulingStrategy *string `locationName:"schedulingStrategy" type:"string" enum:"SchedulingStrategy"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
|
@ -7161,6 +7219,12 @@ func (s *ListServicesInput) SetNextToken(v string) *ListServicesInput {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetSchedulingStrategy sets the SchedulingStrategy field's value.
|
||||
func (s *ListServicesInput) SetSchedulingStrategy(v string) *ListServicesInput {
|
||||
s.SchedulingStrategy = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type ListServicesOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -7581,6 +7645,13 @@ func (s *ListTasksOutput) SetTaskArns(v []*string) *ListTasksOutput {
|
|||
}
|
||||
|
||||
// Details on a load balancer that is used with a service.
|
||||
//
|
||||
// Services with tasks that use the awsvpc network mode (for example, those
|
||||
// with the Fargate launch type) only support Application Load Balancers and
|
||||
// Network Load Balancers; Classic Load Balancers are not supported. Also, when
|
||||
// you create any target groups for these services, you must choose ip as the
|
||||
// target type, not instance, because tasks that use the awsvpc network mode
|
||||
// are associated with an elastic network interface, not an Amazon EC2 instance.
|
||||
type LoadBalancer struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -7599,6 +7670,11 @@ type LoadBalancer struct {
|
|||
|
||||
// The full Amazon Resource Name (ARN) of the Elastic Load Balancing target
|
||||
// group associated with a service.
|
||||
//
|
||||
// If your service's task definition uses the awsvpc network mode (which is
|
||||
// required for the Fargate launch type), you must choose ip as the target type,
|
||||
// not instance, because tasks that use the awsvpc network mode are associated
|
||||
// with an elastic network interface, not an Amazon EC2 instance.
|
||||
TargetGroupArn *string `locationName:"targetGroupArn" type:"string"`
|
||||
}
|
||||
|
||||
|
@ -8542,7 +8618,8 @@ type Resource struct {
|
|||
// precision floating-point type.
|
||||
LongValue *int64 `locationName:"longValue" type:"long"`
|
||||
|
||||
// The name of the resource, such as cpu, memory, ports, or a user-defined resource.
|
||||
// The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, or a user-defined
|
||||
// resource.
|
||||
Name *string `locationName:"name" type:"string"`
|
||||
|
||||
// When the stringSetValue type is set, the value of the resource must be a
|
||||
|
@ -8832,6 +8909,13 @@ type Service struct {
|
|||
// A list of Elastic Load Balancing load balancer objects, containing the load
|
||||
// balancer name, the container name (as it appears in a container definition),
|
||||
// and the container port to access from the load balancer.
|
||||
//
|
||||
// Services with tasks that use the awsvpc network mode (for example, those
|
||||
// with the Fargate launch type) only support Application Load Balancers and
|
||||
// Network Load Balancers; Classic Load Balancers are not supported. Also, when
|
||||
// you create any target groups for these services, you must choose ip as the
|
||||
// target type, not instance, because tasks that use the awsvpc network mode
|
||||
// are associated with an elastic network interface, not an Amazon EC2 instance.
|
||||
LoadBalancers []*LoadBalancer `locationName:"loadBalancers" type:"list"`
|
||||
|
||||
// The VPC subnet and security group configuration for tasks that receive their
|
||||
|
@ -8860,6 +8944,23 @@ type Service struct {
|
|||
// The number of tasks in the cluster that are in the RUNNING state.
|
||||
RunningCount *int64 `locationName:"runningCount" type:"integer"`
|
||||
|
||||
// The scheduling strategy to use for the service. For more information, see
|
||||
// Services (http://docs.aws.amazon.com/AmazonECS/latest/developerguideecs_services.html).
|
||||
//
|
||||
// There are two service scheduler strategies available:
|
||||
//
|
||||
// * REPLICA-The replica scheduling strategy places and maintains the desired
|
||||
// number of tasks across your cluster. By default, the service scheduler
|
||||
// spreads tasks across Availability Zones. You can use task placement strategies
|
||||
// and constraints to customize task placement decisions.
|
||||
//
|
||||
// * DAEMON-The daemon scheduling strategy deploys exactly one task on each
|
||||
// container instance in your cluster. When using this strategy, do not specify
|
||||
// a desired number of tasks or any task placement strategies.
|
||||
//
|
||||
// Fargate tasks do not support the DAEMON scheduling strategy.
|
||||
SchedulingStrategy *string `locationName:"schedulingStrategy" type:"string" enum:"SchedulingStrategy"`
|
||||
|
||||
// The ARN that identifies the service. The ARN contains the arn:aws:ecs namespace,
|
||||
// followed by the region of the service, the AWS account ID of the service
|
||||
// owner, the service namespace, and then the service name. For example, arn:aws:ecs:region:012345678910:service/my-service.
|
||||
|
@ -8988,6 +9089,12 @@ func (s *Service) SetRunningCount(v int64) *Service {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetSchedulingStrategy sets the SchedulingStrategy field's value.
|
||||
func (s *Service) SetSchedulingStrategy(v string) *Service {
|
||||
s.SchedulingStrategy = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetServiceArn sets the ServiceArn field's value.
|
||||
func (s *Service) SetServiceArn(v string) *Service {
|
||||
s.ServiceArn = &v
|
||||
|
@ -9064,12 +9171,32 @@ func (s *ServiceEvent) SetMessage(v string) *ServiceEvent {
|
|||
type ServiceRegistry struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The port value used if your Service Discovery service specified an SRV record.
|
||||
// The container name value, already specified in the task definition, to be
|
||||
// used for your service discovery service. If the task definition that your
|
||||
// service task specifies uses the bridge or host network mode, you must specify
|
||||
// a containerName and containerPort combination from the task definition. If
|
||||
// the task definition that your service task specifies uses the awsvpc network
|
||||
// mode and a type SRV DNS record is used, you must specify either a containerName
|
||||
// and containerPort combination or a port value, but not both.
|
||||
ContainerName *string `locationName:"containerName" type:"string"`
|
||||
|
||||
// The port value, already specified in the task definition, to be used for
|
||||
// your service discovery service. If the task definition your service task
|
||||
// specifies uses the bridge or host network mode, you must specify a containerName
|
||||
// and containerPort combination from the task definition. If the task definition
|
||||
// your service task specifies uses the awsvpc network mode and a type SRV DNS
|
||||
// record is used, you must specify either a containerName and containerPort
|
||||
// combination or a port value, but not both.
|
||||
ContainerPort *int64 `locationName:"containerPort" type:"integer"`
|
||||
|
||||
// The port value used if your service discovery service specified an SRV record.
|
||||
// This field is required if both the awsvpc network mode and SRV records are
|
||||
// used.
|
||||
Port *int64 `locationName:"port" type:"integer"`
|
||||
|
||||
// The Amazon Resource Name (ARN) of the Service Registry. The currently supported
|
||||
// service registry is Amazon Route 53 Auto Naming Service. For more information,
|
||||
// see Service (https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html).
|
||||
// The Amazon Resource Name (ARN) of the service registry. The currently supported
|
||||
// service registry is Amazon Route 53 Auto Naming. For more information, see
|
||||
// Service (https://docs.aws.amazon.com/Route53/latest/APIReference/API_autonaming_Service.html).
|
||||
RegistryArn *string `locationName:"registryArn" type:"string"`
|
||||
}
|
||||
|
||||
|
@ -9083,6 +9210,18 @@ func (s ServiceRegistry) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
// SetContainerName sets the ContainerName field's value.
|
||||
func (s *ServiceRegistry) SetContainerName(v string) *ServiceRegistry {
|
||||
s.ContainerName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetContainerPort sets the ContainerPort field's value.
|
||||
func (s *ServiceRegistry) SetContainerPort(v int64) *ServiceRegistry {
|
||||
s.ContainerPort = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPort sets the Port field's value.
|
||||
func (s *ServiceRegistry) SetPort(v int64) *ServiceRegistry {
|
||||
s.Port = &v
|
||||
|
@ -10261,7 +10400,7 @@ type Tmpfs struct {
|
|||
// | "slave" | "rslave" | "relatime" | "norelatime" | "strictatime" | "nostrictatime"
|
||||
MountOptions []*string `locationName:"mountOptions" type:"list"`
|
||||
|
||||
// The size of the tmpfs volume.
|
||||
// The size (in MiB) of the tmpfs volume.
|
||||
//
|
||||
// Size is a required field
|
||||
Size *int64 `locationName:"size" type:"integer" required:"true"`
|
||||
|
@ -10991,6 +11130,14 @@ const (
|
|||
PlacementStrategyTypeBinpack = "binpack"
|
||||
)
|
||||
|
||||
const (
|
||||
// SchedulingStrategyReplica is a SchedulingStrategy enum value
|
||||
SchedulingStrategyReplica = "REPLICA"
|
||||
|
||||
// SchedulingStrategyDaemon is a SchedulingStrategy enum value
|
||||
SchedulingStrategyDaemon = "DAEMON"
|
||||
)
|
||||
|
||||
const (
|
||||
// SortOrderAsc is a SortOrder enum value
|
||||
SortOrderAsc = "ASC"
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/ecs/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/ecs/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "ecs" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "ECS" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ECS 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,
|
||||
|
|
2
vendor/github.com/aws/aws-sdk-go/service/efs/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/efs/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "elasticfilesystem" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "EFS" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the EFS 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,
|
||||
|
|
1012
vendor/github.com/aws/aws-sdk-go/service/eks/api.go
generated
vendored
Normal file
1012
vendor/github.com/aws/aws-sdk-go/service/eks/api.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
54
vendor/github.com/aws/aws-sdk-go/service/eks/doc.go
generated
vendored
Normal file
54
vendor/github.com/aws/aws-sdk-go/service/eks/doc.go
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package eks provides the client and types for making API
|
||||
// requests to Amazon Elastic Container Service for Kubernetes.
|
||||
//
|
||||
// Amazon Elastic Container Service for Kubernetes (Amazon EKS) is a managed
|
||||
// service that makes it easy for you to run Kubernetes on AWS without needing
|
||||
// to stand up or maintain your own Kubernetes control plane. Kubernetes is
|
||||
// an open-source system for automating the deployment, scaling, and management
|
||||
// of containerized applications.
|
||||
//
|
||||
// Amazon EKS runs three Kubernetes control plane instances across three Availability
|
||||
// Zones to ensure high availability. Amazon EKS automatically detects and replaces
|
||||
// unhealthy control plane instances, and it provides automated version upgrades
|
||||
// and patching for them.
|
||||
//
|
||||
// Amazon EKS is also integrated with many AWS services to provide scalability
|
||||
// and security for your applications, including the following:
|
||||
//
|
||||
// * Elastic Load Balancing for load distribution
|
||||
//
|
||||
// * IAM for authentication
|
||||
//
|
||||
// * Amazon VPC for isolation
|
||||
//
|
||||
// Amazon EKS runs up to date versions of the open-source Kubernetes software,
|
||||
// so you can use all the existing plugins and tooling from the Kubernetes community.
|
||||
// Applications running on Amazon EKS are fully compatible with applications
|
||||
// running on any standard Kubernetes environment, whether running in on-premises
|
||||
// data centers or public clouds. This means that you can easily migrate any
|
||||
// standard Kubernetes application to Amazon EKS without any code modification
|
||||
// required.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01 for more information on this service.
|
||||
//
|
||||
// See eks package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/eks/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact Amazon Elastic Container Service for Kubernetes with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the Amazon Elastic Container Service for Kubernetes client EKS for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/eks/#New
|
||||
package eks
|
80
vendor/github.com/aws/aws-sdk-go/service/eks/eksiface/interface.go
generated
vendored
Normal file
80
vendor/github.com/aws/aws-sdk-go/service/eks/eksiface/interface.go
generated
vendored
Normal file
|
@ -0,0 +1,80 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package eksiface provides an interface to enable mocking the Amazon Elastic Container Service for Kubernetes service client
|
||||
// for testing your code.
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters.
|
||||
package eksiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/eks"
|
||||
)
|
||||
|
||||
// EKSAPI provides an interface to enable mocking the
|
||||
// eks.EKS service client's API operation,
|
||||
// paginators, and waiters. This make unit testing your code that calls out
|
||||
// to the SDK's service client's calls easier.
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon Elastic Container Service for Kubernetes.
|
||||
// func myFunc(svc eksiface.EKSAPI) bool {
|
||||
// // Make svc.CreateCluster request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := eks.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockEKSClient struct {
|
||||
// eksiface.EKSAPI
|
||||
// }
|
||||
// func (m *mockEKSClient) CreateCluster(input *eks.CreateClusterInput) (*eks.CreateClusterOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockEKSClient{}
|
||||
//
|
||||
// myfunc(mockSvc)
|
||||
//
|
||||
// // Verify myFunc's functionality
|
||||
// }
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters. Its suggested to use the pattern above for testing, or using
|
||||
// tooling to generate mocks to satisfy the interfaces.
|
||||
type EKSAPI interface {
|
||||
CreateCluster(*eks.CreateClusterInput) (*eks.CreateClusterOutput, error)
|
||||
CreateClusterWithContext(aws.Context, *eks.CreateClusterInput, ...request.Option) (*eks.CreateClusterOutput, error)
|
||||
CreateClusterRequest(*eks.CreateClusterInput) (*request.Request, *eks.CreateClusterOutput)
|
||||
|
||||
DeleteCluster(*eks.DeleteClusterInput) (*eks.DeleteClusterOutput, error)
|
||||
DeleteClusterWithContext(aws.Context, *eks.DeleteClusterInput, ...request.Option) (*eks.DeleteClusterOutput, error)
|
||||
DeleteClusterRequest(*eks.DeleteClusterInput) (*request.Request, *eks.DeleteClusterOutput)
|
||||
|
||||
DescribeCluster(*eks.DescribeClusterInput) (*eks.DescribeClusterOutput, error)
|
||||
DescribeClusterWithContext(aws.Context, *eks.DescribeClusterInput, ...request.Option) (*eks.DescribeClusterOutput, error)
|
||||
DescribeClusterRequest(*eks.DescribeClusterInput) (*request.Request, *eks.DescribeClusterOutput)
|
||||
|
||||
ListClusters(*eks.ListClustersInput) (*eks.ListClustersOutput, error)
|
||||
ListClustersWithContext(aws.Context, *eks.ListClustersInput, ...request.Option) (*eks.ListClustersOutput, error)
|
||||
ListClustersRequest(*eks.ListClustersInput) (*request.Request, *eks.ListClustersOutput)
|
||||
}
|
||||
|
||||
var _ EKSAPI = (*eks.EKS)(nil)
|
61
vendor/github.com/aws/aws-sdk-go/service/eks/errors.go
generated
vendored
Normal file
61
vendor/github.com/aws/aws-sdk-go/service/eks/errors.go
generated
vendored
Normal file
|
@ -0,0 +1,61 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package eks
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeClientException for service response error code
|
||||
// "ClientException".
|
||||
//
|
||||
// These errors are usually caused by a client action, such as using an action
|
||||
// or resource on behalf of a user that doesn't have permissions to use the
|
||||
// action or resource, or specifying an identifier that is not valid.
|
||||
ErrCodeClientException = "ClientException"
|
||||
|
||||
// ErrCodeInvalidParameterException for service response error code
|
||||
// "InvalidParameterException".
|
||||
//
|
||||
// The specified parameter is invalid. Review the available parameters for the
|
||||
// API request.
|
||||
ErrCodeInvalidParameterException = "InvalidParameterException"
|
||||
|
||||
// ErrCodeResourceInUseException for service response error code
|
||||
// "ResourceInUseException".
|
||||
//
|
||||
// The specified resource is in use.
|
||||
ErrCodeResourceInUseException = "ResourceInUseException"
|
||||
|
||||
// ErrCodeResourceLimitExceededException for service response error code
|
||||
// "ResourceLimitExceededException".
|
||||
//
|
||||
// You have encountered a service limit on the specified resource.
|
||||
ErrCodeResourceLimitExceededException = "ResourceLimitExceededException"
|
||||
|
||||
// ErrCodeResourceNotFoundException for service response error code
|
||||
// "ResourceNotFoundException".
|
||||
//
|
||||
// The specified resource could not be found. You can view your available clusters
|
||||
// with ListClusters. Amazon EKS clusters are region-specific.
|
||||
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
|
||||
|
||||
// ErrCodeServerException for service response error code
|
||||
// "ServerException".
|
||||
//
|
||||
// These errors are usually caused by a server-side issue.
|
||||
ErrCodeServerException = "ServerException"
|
||||
|
||||
// ErrCodeServiceUnavailableException for service response error code
|
||||
// "ServiceUnavailableException".
|
||||
//
|
||||
// The service is unavailable, back off and retry the operation.
|
||||
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
|
||||
|
||||
// ErrCodeUnsupportedAvailabilityZoneException for service response error code
|
||||
// "UnsupportedAvailabilityZoneException".
|
||||
//
|
||||
// At least one of your specified cluster subnets is in an Availability Zone
|
||||
// that does not support Amazon EKS. The exception output will specify the supported
|
||||
// Availability Zones for your account, from which you can choose subnets for
|
||||
// your cluster.
|
||||
ErrCodeUnsupportedAvailabilityZoneException = "UnsupportedAvailabilityZoneException"
|
||||
)
|
185
vendor/github.com/aws/aws-sdk-go/service/eks/examples_test.go
generated
vendored
Normal file
185
vendor/github.com/aws/aws-sdk-go/service/eks/examples_test.go
generated
vendored
Normal file
|
@ -0,0 +1,185 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package eks_test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/eks"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ strings.Reader
|
||||
var _ aws.Config
|
||||
|
||||
func parseTime(layout, value string) *time.Time {
|
||||
t, err := time.Parse(layout, value)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return &t
|
||||
}
|
||||
|
||||
// To create a new cluster
|
||||
//
|
||||
// The following example creates an Amazon EKS cluster called prod.
|
||||
func ExampleEKS_CreateCluster_shared00() {
|
||||
svc := eks.New(session.New())
|
||||
input := &eks.CreateClusterInput{
|
||||
ClientRequestToken: aws.String("1d2129a1-3d38-460a-9756-e5b91fddb951"),
|
||||
Name: aws.String("prod"),
|
||||
ResourcesVpcConfig: &eks.VpcConfigRequest{
|
||||
SecurityGroupIds: []*string{
|
||||
aws.String("sg-6979fe18"),
|
||||
},
|
||||
SubnetIds: []*string{
|
||||
aws.String("subnet-6782e71e"),
|
||||
aws.String("subnet-e7e761ac"),
|
||||
},
|
||||
},
|
||||
RoleArn: aws.String("arn:aws:iam::012345678910:role/eks-service-role-AWSServiceRoleForAmazonEKS-J7ONKE3BQ4PI"),
|
||||
Version: aws.String("1.10"),
|
||||
}
|
||||
|
||||
result, err := svc.CreateCluster(input)
|
||||
if err != nil {
|
||||
if aerr, ok := err.(awserr.Error); ok {
|
||||
switch aerr.Code() {
|
||||
case eks.ErrCodeResourceInUseException:
|
||||
fmt.Println(eks.ErrCodeResourceInUseException, aerr.Error())
|
||||
case eks.ErrCodeResourceLimitExceededException:
|
||||
fmt.Println(eks.ErrCodeResourceLimitExceededException, aerr.Error())
|
||||
case eks.ErrCodeInvalidParameterException:
|
||||
fmt.Println(eks.ErrCodeInvalidParameterException, aerr.Error())
|
||||
case eks.ErrCodeClientException:
|
||||
fmt.Println(eks.ErrCodeClientException, aerr.Error())
|
||||
case eks.ErrCodeServerException:
|
||||
fmt.Println(eks.ErrCodeServerException, aerr.Error())
|
||||
case eks.ErrCodeServiceUnavailableException:
|
||||
fmt.Println(eks.ErrCodeServiceUnavailableException, aerr.Error())
|
||||
case eks.ErrCodeUnsupportedAvailabilityZoneException:
|
||||
fmt.Println(eks.ErrCodeUnsupportedAvailabilityZoneException, aerr.Error())
|
||||
default:
|
||||
fmt.Println(aerr.Error())
|
||||
}
|
||||
} else {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
// To delete a cluster
|
||||
//
|
||||
// This example command deletes a cluster named `devel` in your default region.
|
||||
func ExampleEKS_DeleteCluster_shared00() {
|
||||
svc := eks.New(session.New())
|
||||
input := &eks.DeleteClusterInput{
|
||||
Name: aws.String("devel"),
|
||||
}
|
||||
|
||||
result, err := svc.DeleteCluster(input)
|
||||
if err != nil {
|
||||
if aerr, ok := err.(awserr.Error); ok {
|
||||
switch aerr.Code() {
|
||||
case eks.ErrCodeResourceInUseException:
|
||||
fmt.Println(eks.ErrCodeResourceInUseException, aerr.Error())
|
||||
case eks.ErrCodeResourceNotFoundException:
|
||||
fmt.Println(eks.ErrCodeResourceNotFoundException, aerr.Error())
|
||||
case eks.ErrCodeClientException:
|
||||
fmt.Println(eks.ErrCodeClientException, aerr.Error())
|
||||
case eks.ErrCodeServerException:
|
||||
fmt.Println(eks.ErrCodeServerException, aerr.Error())
|
||||
case eks.ErrCodeServiceUnavailableException:
|
||||
fmt.Println(eks.ErrCodeServiceUnavailableException, aerr.Error())
|
||||
default:
|
||||
fmt.Println(aerr.Error())
|
||||
}
|
||||
} else {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
// To describe a cluster
|
||||
//
|
||||
// This example command provides a description of the specified cluster in your default
|
||||
// region.
|
||||
func ExampleEKS_DescribeCluster_shared00() {
|
||||
svc := eks.New(session.New())
|
||||
input := &eks.DescribeClusterInput{
|
||||
Name: aws.String("devel"),
|
||||
}
|
||||
|
||||
result, err := svc.DescribeCluster(input)
|
||||
if err != nil {
|
||||
if aerr, ok := err.(awserr.Error); ok {
|
||||
switch aerr.Code() {
|
||||
case eks.ErrCodeResourceNotFoundException:
|
||||
fmt.Println(eks.ErrCodeResourceNotFoundException, aerr.Error())
|
||||
case eks.ErrCodeClientException:
|
||||
fmt.Println(eks.ErrCodeClientException, aerr.Error())
|
||||
case eks.ErrCodeServerException:
|
||||
fmt.Println(eks.ErrCodeServerException, aerr.Error())
|
||||
case eks.ErrCodeServiceUnavailableException:
|
||||
fmt.Println(eks.ErrCodeServiceUnavailableException, aerr.Error())
|
||||
default:
|
||||
fmt.Println(aerr.Error())
|
||||
}
|
||||
} else {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println(result)
|
||||
}
|
||||
|
||||
// To list your available clusters
|
||||
//
|
||||
// This example command lists all of your available clusters in your default region.
|
||||
func ExampleEKS_ListClusters_shared00() {
|
||||
svc := eks.New(session.New())
|
||||
input := &eks.ListClustersInput{}
|
||||
|
||||
result, err := svc.ListClusters(input)
|
||||
if err != nil {
|
||||
if aerr, ok := err.(awserr.Error); ok {
|
||||
switch aerr.Code() {
|
||||
case eks.ErrCodeInvalidParameterException:
|
||||
fmt.Println(eks.ErrCodeInvalidParameterException, aerr.Error())
|
||||
case eks.ErrCodeClientException:
|
||||
fmt.Println(eks.ErrCodeClientException, aerr.Error())
|
||||
case eks.ErrCodeServerException:
|
||||
fmt.Println(eks.ErrCodeServerException, aerr.Error())
|
||||
case eks.ErrCodeServiceUnavailableException:
|
||||
fmt.Println(eks.ErrCodeServiceUnavailableException, aerr.Error())
|
||||
default:
|
||||
fmt.Println(aerr.Error())
|
||||
}
|
||||
} else {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println(result)
|
||||
}
|
99
vendor/github.com/aws/aws-sdk-go/service/eks/service.go
generated
vendored
Normal file
99
vendor/github.com/aws/aws-sdk-go/service/eks/service.go
generated
vendored
Normal file
|
@ -0,0 +1,99 @@
|
|||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package eks
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||
)
|
||||
|
||||
// EKS provides the API operation methods for making requests to
|
||||
// Amazon Elastic Container Service for Kubernetes. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// EKS methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type EKS struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
// Used for custom client initialization logic
|
||||
var initClient func(*client.Client)
|
||||
|
||||
// Used for custom request initialization logic
|
||||
var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "eks" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "EKS" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the EKS client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
// // Create a EKS client from just a session.
|
||||
// svc := eks.New(mySession)
|
||||
//
|
||||
// // Create a EKS client with additional configuration
|
||||
// svc := eks.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *EKS {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = "eks"
|
||||
}
|
||||
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *EKS {
|
||||
svc := &EKS{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2017-11-01",
|
||||
JSONVersion: "1.1",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a EKS operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *EKS) newRequest(op *request.Operation, params, data interface{}) *request.Request {
|
||||
req := c.NewRequest(op, params, data)
|
||||
|
||||
// Run custom request initialization if present
|
||||
if initRequest != nil {
|
||||
initRequest(req)
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
2
vendor/github.com/aws/aws-sdk-go/service/elasticache/service.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/elasticache/service.go
generated
vendored
|
@ -31,6 +31,7 @@ var initRequest func(*request.Request)
|
|||
const (
|
||||
ServiceName = "elasticache" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "ElastiCache" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ElastiCache 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,
|
||||
|
|
18
vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go
generated
vendored
18
vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/api.go
generated
vendored
|
@ -152,7 +152,7 @@ func (c *ElasticBeanstalk) ApplyEnvironmentManagedActionRequest(input *ApplyEnvi
|
|||
// API operation ApplyEnvironmentManagedAction for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// * ErrCodeServiceException "ElasticBeanstalkServiceException"
|
||||
// A generic service exception has occurred.
|
||||
//
|
||||
// * ErrCodeManagedActionInvalidStateException "ManagedActionInvalidStateException"
|
||||
|
@ -776,7 +776,7 @@ func (c *ElasticBeanstalk) CreatePlatformVersionRequest(input *CreatePlatformVer
|
|||
// The specified account does not have sufficient privileges for one or more
|
||||
// AWS services.
|
||||
//
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// * ErrCodeServiceException "ElasticBeanstalkServiceException"
|
||||
// A generic service exception has occurred.
|
||||
//
|
||||
// * ErrCodeTooManyPlatformsException "TooManyPlatformsException"
|
||||
|
@ -1315,7 +1315,7 @@ func (c *ElasticBeanstalk) DeletePlatformVersionRequest(input *DeletePlatformVer
|
|||
// The specified account does not have sufficient privileges for one or more
|
||||
// AWS services.
|
||||
//
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// * ErrCodeServiceException "ElasticBeanstalkServiceException"
|
||||
// A generic service exception has occurred.
|
||||
//
|
||||
// * ErrCodePlatformVersionStillReferencedException "PlatformVersionStillReferencedException"
|
||||
|
@ -1809,7 +1809,7 @@ func (c *ElasticBeanstalk) DescribeEnvironmentHealthRequest(input *DescribeEnvir
|
|||
// One or more input parameters is not valid. Please correct the input parameters
|
||||
// and try the operation again.
|
||||
//
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// * ErrCodeServiceException "ElasticBeanstalkServiceException"
|
||||
// A generic service exception has occurred.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentHealth
|
||||
|
@ -1888,7 +1888,7 @@ func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionHistoryRequest(input
|
|||
// API operation DescribeEnvironmentManagedActionHistory for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// * ErrCodeServiceException "ElasticBeanstalkServiceException"
|
||||
// A generic service exception has occurred.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActionHistory
|
||||
|
@ -1967,7 +1967,7 @@ func (c *ElasticBeanstalk) DescribeEnvironmentManagedActionsRequest(input *Descr
|
|||
// API operation DescribeEnvironmentManagedActions for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// * ErrCodeServiceException "ElasticBeanstalkServiceException"
|
||||
// A generic service exception has occurred.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeEnvironmentManagedActions
|
||||
|
@ -2337,7 +2337,7 @@ func (c *ElasticBeanstalk) DescribeInstancesHealthRequest(input *DescribeInstanc
|
|||
// One or more input parameters is not valid. Please correct the input parameters
|
||||
// and try the operation again.
|
||||
//
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// * ErrCodeServiceException "ElasticBeanstalkServiceException"
|
||||
// A generic service exception has occurred.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribeInstancesHealth
|
||||
|
@ -2420,7 +2420,7 @@ func (c *ElasticBeanstalk) DescribePlatformVersionRequest(input *DescribePlatfor
|
|||
// The specified account does not have sufficient privileges for one or more
|
||||
// AWS services.
|
||||
//
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// * ErrCodeServiceException "ElasticBeanstalkServiceException"
|
||||
// A generic service exception has occurred.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/DescribePlatformVersion
|
||||
|
@ -2578,7 +2578,7 @@ func (c *ElasticBeanstalk) ListPlatformVersionsRequest(input *ListPlatformVersio
|
|||
// The specified account does not have sufficient privileges for one or more
|
||||
// AWS services.
|
||||
//
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// * ErrCodeServiceException "ElasticBeanstalkServiceException"
|
||||
// A generic service exception has occurred.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListPlatformVersions
|
||||
|
|
4
vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/errors.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/errors.go
generated
vendored
|
@ -77,10 +77,10 @@ const (
|
|||
ErrCodeS3SubscriptionRequiredException = "S3SubscriptionRequiredException"
|
||||
|
||||
// ErrCodeServiceException for service response error code
|
||||
// "ServiceException".
|
||||
// "ElasticBeanstalkServiceException".
|
||||
//
|
||||
// A generic service exception has occurred.
|
||||
ErrCodeServiceException = "ServiceException"
|
||||
ErrCodeServiceException = "ElasticBeanstalkServiceException"
|
||||
|
||||
// ErrCodeSourceBundleDeletionException for service response error code
|
||||
// "SourceBundleDeletionFailure".
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "elasticbeanstalk" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "elasticbeanstalk" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Elastic Beanstalk" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ElasticBeanstalk 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,
|
||||
|
|
920
vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go
generated
vendored
920
vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/api.go
generated
vendored
|
@ -756,6 +756,298 @@ func (c *ElasticsearchService) DescribeElasticsearchInstanceTypeLimitsWithContex
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDescribeReservedElasticsearchInstanceOfferings = "DescribeReservedElasticsearchInstanceOfferings"
|
||||
|
||||
// DescribeReservedElasticsearchInstanceOfferingsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeReservedElasticsearchInstanceOfferings operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 DescribeReservedElasticsearchInstanceOfferings for more information on using the DescribeReservedElasticsearchInstanceOfferings
|
||||
// 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 DescribeReservedElasticsearchInstanceOfferingsRequest method.
|
||||
// req, resp := client.DescribeReservedElasticsearchInstanceOfferingsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
func (c *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferingsRequest(input *DescribeReservedElasticsearchInstanceOfferingsInput) (req *request.Request, output *DescribeReservedElasticsearchInstanceOfferingsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeReservedElasticsearchInstanceOfferings,
|
||||
HTTPMethod: "GET",
|
||||
HTTPPath: "/2015-01-01/es/reservedInstanceOfferings",
|
||||
Paginator: &request.Paginator{
|
||||
InputTokens: []string{"NextToken"},
|
||||
OutputTokens: []string{"NextToken"},
|
||||
LimitToken: "MaxResults",
|
||||
TruncationToken: "",
|
||||
},
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DescribeReservedElasticsearchInstanceOfferingsInput{}
|
||||
}
|
||||
|
||||
output = &DescribeReservedElasticsearchInstanceOfferingsOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// DescribeReservedElasticsearchInstanceOfferings API operation for Amazon Elasticsearch Service.
|
||||
//
|
||||
// Lists available reserved Elasticsearch instance offerings.
|
||||
//
|
||||
// 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 Amazon Elasticsearch Service's
|
||||
// API operation DescribeReservedElasticsearchInstanceOfferings for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// An exception for accessing or deleting a resource that does not exist. Gives
|
||||
// http status code of 400.
|
||||
//
|
||||
// * ErrCodeValidationException "ValidationException"
|
||||
// An exception for missing / invalid input fields. Gives http status code of
|
||||
// 400.
|
||||
//
|
||||
// * ErrCodeDisabledOperationException "DisabledOperationException"
|
||||
// An error occured because the client wanted to access a not supported operation.
|
||||
// Gives http status code of 409.
|
||||
//
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// The request processing has failed because of an unknown error, exception
|
||||
// or failure (the failure is internal to the service) . Gives http status code
|
||||
// of 500.
|
||||
//
|
||||
func (c *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferings(input *DescribeReservedElasticsearchInstanceOfferingsInput) (*DescribeReservedElasticsearchInstanceOfferingsOutput, error) {
|
||||
req, out := c.DescribeReservedElasticsearchInstanceOfferingsRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DescribeReservedElasticsearchInstanceOfferingsWithContext is the same as DescribeReservedElasticsearchInstanceOfferings with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DescribeReservedElasticsearchInstanceOfferings 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 *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferingsWithContext(ctx aws.Context, input *DescribeReservedElasticsearchInstanceOfferingsInput, opts ...request.Option) (*DescribeReservedElasticsearchInstanceOfferingsOutput, error) {
|
||||
req, out := c.DescribeReservedElasticsearchInstanceOfferingsRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DescribeReservedElasticsearchInstanceOfferingsPages iterates over the pages of a DescribeReservedElasticsearchInstanceOfferings operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeReservedElasticsearchInstanceOfferings 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 DescribeReservedElasticsearchInstanceOfferings operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeReservedElasticsearchInstanceOfferingsPages(params,
|
||||
// func(page *DescribeReservedElasticsearchInstanceOfferingsOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferingsPages(input *DescribeReservedElasticsearchInstanceOfferingsInput, fn func(*DescribeReservedElasticsearchInstanceOfferingsOutput, bool) bool) error {
|
||||
return c.DescribeReservedElasticsearchInstanceOfferingsPagesWithContext(aws.BackgroundContext(), input, fn)
|
||||
}
|
||||
|
||||
// DescribeReservedElasticsearchInstanceOfferingsPagesWithContext same as DescribeReservedElasticsearchInstanceOfferingsPages 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 *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferingsPagesWithContext(ctx aws.Context, input *DescribeReservedElasticsearchInstanceOfferingsInput, fn func(*DescribeReservedElasticsearchInstanceOfferingsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
var inCpy *DescribeReservedElasticsearchInstanceOfferingsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeReservedElasticsearchInstanceOfferingsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
},
|
||||
}
|
||||
|
||||
cont := true
|
||||
for p.Next() && cont {
|
||||
cont = fn(p.Page().(*DescribeReservedElasticsearchInstanceOfferingsOutput), !p.HasNextPage())
|
||||
}
|
||||
return p.Err()
|
||||
}
|
||||
|
||||
const opDescribeReservedElasticsearchInstances = "DescribeReservedElasticsearchInstances"
|
||||
|
||||
// DescribeReservedElasticsearchInstancesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeReservedElasticsearchInstances operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 DescribeReservedElasticsearchInstances for more information on using the DescribeReservedElasticsearchInstances
|
||||
// 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 DescribeReservedElasticsearchInstancesRequest method.
|
||||
// req, resp := client.DescribeReservedElasticsearchInstancesRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
func (c *ElasticsearchService) DescribeReservedElasticsearchInstancesRequest(input *DescribeReservedElasticsearchInstancesInput) (req *request.Request, output *DescribeReservedElasticsearchInstancesOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeReservedElasticsearchInstances,
|
||||
HTTPMethod: "GET",
|
||||
HTTPPath: "/2015-01-01/es/reservedInstances",
|
||||
Paginator: &request.Paginator{
|
||||
InputTokens: []string{"NextToken"},
|
||||
OutputTokens: []string{"NextToken"},
|
||||
LimitToken: "MaxResults",
|
||||
TruncationToken: "",
|
||||
},
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DescribeReservedElasticsearchInstancesInput{}
|
||||
}
|
||||
|
||||
output = &DescribeReservedElasticsearchInstancesOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// DescribeReservedElasticsearchInstances API operation for Amazon Elasticsearch Service.
|
||||
//
|
||||
// Returns information about reserved Elasticsearch instances for this account.
|
||||
//
|
||||
// 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 Amazon Elasticsearch Service's
|
||||
// API operation DescribeReservedElasticsearchInstances for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// An exception for accessing or deleting a resource that does not exist. Gives
|
||||
// http status code of 400.
|
||||
//
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// The request processing has failed because of an unknown error, exception
|
||||
// or failure (the failure is internal to the service) . Gives http status code
|
||||
// of 500.
|
||||
//
|
||||
// * ErrCodeValidationException "ValidationException"
|
||||
// An exception for missing / invalid input fields. Gives http status code of
|
||||
// 400.
|
||||
//
|
||||
// * ErrCodeDisabledOperationException "DisabledOperationException"
|
||||
// An error occured because the client wanted to access a not supported operation.
|
||||
// Gives http status code of 409.
|
||||
//
|
||||
func (c *ElasticsearchService) DescribeReservedElasticsearchInstances(input *DescribeReservedElasticsearchInstancesInput) (*DescribeReservedElasticsearchInstancesOutput, error) {
|
||||
req, out := c.DescribeReservedElasticsearchInstancesRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DescribeReservedElasticsearchInstancesWithContext is the same as DescribeReservedElasticsearchInstances with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DescribeReservedElasticsearchInstances 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 *ElasticsearchService) DescribeReservedElasticsearchInstancesWithContext(ctx aws.Context, input *DescribeReservedElasticsearchInstancesInput, opts ...request.Option) (*DescribeReservedElasticsearchInstancesOutput, error) {
|
||||
req, out := c.DescribeReservedElasticsearchInstancesRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DescribeReservedElasticsearchInstancesPages iterates over the pages of a DescribeReservedElasticsearchInstances operation,
|
||||
// calling the "fn" function with the response data for each page. To stop
|
||||
// iterating, return false from the fn function.
|
||||
//
|
||||
// See DescribeReservedElasticsearchInstances 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 DescribeReservedElasticsearchInstances operation.
|
||||
// pageNum := 0
|
||||
// err := client.DescribeReservedElasticsearchInstancesPages(params,
|
||||
// func(page *DescribeReservedElasticsearchInstancesOutput, lastPage bool) bool {
|
||||
// pageNum++
|
||||
// fmt.Println(page)
|
||||
// return pageNum <= 3
|
||||
// })
|
||||
//
|
||||
func (c *ElasticsearchService) DescribeReservedElasticsearchInstancesPages(input *DescribeReservedElasticsearchInstancesInput, fn func(*DescribeReservedElasticsearchInstancesOutput, bool) bool) error {
|
||||
return c.DescribeReservedElasticsearchInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
|
||||
}
|
||||
|
||||
// DescribeReservedElasticsearchInstancesPagesWithContext same as DescribeReservedElasticsearchInstancesPages 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 *ElasticsearchService) DescribeReservedElasticsearchInstancesPagesWithContext(ctx aws.Context, input *DescribeReservedElasticsearchInstancesInput, fn func(*DescribeReservedElasticsearchInstancesOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
var inCpy *DescribeReservedElasticsearchInstancesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeReservedElasticsearchInstancesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
},
|
||||
}
|
||||
|
||||
cont := true
|
||||
for p.Next() && cont {
|
||||
cont = fn(p.Page().(*DescribeReservedElasticsearchInstancesOutput), !p.HasNextPage())
|
||||
}
|
||||
return p.Err()
|
||||
}
|
||||
|
||||
const opListDomainNames = "ListDomainNames"
|
||||
|
||||
// ListDomainNamesRequest generates a "aws/request.Request" representing the
|
||||
|
@ -1216,6 +1508,104 @@ func (c *ElasticsearchService) ListTagsWithContext(ctx aws.Context, input *ListT
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opPurchaseReservedElasticsearchInstanceOffering = "PurchaseReservedElasticsearchInstanceOffering"
|
||||
|
||||
// PurchaseReservedElasticsearchInstanceOfferingRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PurchaseReservedElasticsearchInstanceOffering operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 PurchaseReservedElasticsearchInstanceOffering for more information on using the PurchaseReservedElasticsearchInstanceOffering
|
||||
// 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 PurchaseReservedElasticsearchInstanceOfferingRequest method.
|
||||
// req, resp := client.PurchaseReservedElasticsearchInstanceOfferingRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
func (c *ElasticsearchService) PurchaseReservedElasticsearchInstanceOfferingRequest(input *PurchaseReservedElasticsearchInstanceOfferingInput) (req *request.Request, output *PurchaseReservedElasticsearchInstanceOfferingOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPurchaseReservedElasticsearchInstanceOffering,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/2015-01-01/es/purchaseReservedInstanceOffering",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &PurchaseReservedElasticsearchInstanceOfferingInput{}
|
||||
}
|
||||
|
||||
output = &PurchaseReservedElasticsearchInstanceOfferingOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// PurchaseReservedElasticsearchInstanceOffering API operation for Amazon Elasticsearch Service.
|
||||
//
|
||||
// Allows you to purchase reserved Elasticsearch instances.
|
||||
//
|
||||
// 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 Amazon Elasticsearch Service's
|
||||
// API operation PurchaseReservedElasticsearchInstanceOffering for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// An exception for accessing or deleting a resource that does not exist. Gives
|
||||
// http status code of 400.
|
||||
//
|
||||
// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
|
||||
// An exception for creating a resource that already exists. Gives http status
|
||||
// code of 400.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// An exception for trying to create more than allowed resources or sub-resources.
|
||||
// Gives http status code of 409.
|
||||
//
|
||||
// * ErrCodeDisabledOperationException "DisabledOperationException"
|
||||
// An error occured because the client wanted to access a not supported operation.
|
||||
// Gives http status code of 409.
|
||||
//
|
||||
// * ErrCodeValidationException "ValidationException"
|
||||
// An exception for missing / invalid input fields. Gives http status code of
|
||||
// 400.
|
||||
//
|
||||
// * ErrCodeInternalException "InternalException"
|
||||
// The request processing has failed because of an unknown error, exception
|
||||
// or failure (the failure is internal to the service) . Gives http status code
|
||||
// of 500.
|
||||
//
|
||||
func (c *ElasticsearchService) PurchaseReservedElasticsearchInstanceOffering(input *PurchaseReservedElasticsearchInstanceOfferingInput) (*PurchaseReservedElasticsearchInstanceOfferingOutput, error) {
|
||||
req, out := c.PurchaseReservedElasticsearchInstanceOfferingRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// PurchaseReservedElasticsearchInstanceOfferingWithContext is the same as PurchaseReservedElasticsearchInstanceOffering with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See PurchaseReservedElasticsearchInstanceOffering 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 *ElasticsearchService) PurchaseReservedElasticsearchInstanceOfferingWithContext(ctx aws.Context, input *PurchaseReservedElasticsearchInstanceOfferingInput, opts ...request.Option) (*PurchaseReservedElasticsearchInstanceOfferingOutput, error) {
|
||||
req, out := c.PurchaseReservedElasticsearchInstanceOfferingRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opRemoveTags = "RemoveTags"
|
||||
|
||||
// RemoveTagsRequest generates a "aws/request.Request" representing the
|
||||
|
@ -2299,6 +2689,163 @@ func (s *DescribeElasticsearchInstanceTypeLimitsOutput) SetLimitsByRole(v map[st
|
|||
return s
|
||||
}
|
||||
|
||||
// Container for parameters to DescribeReservedElasticsearchInstanceOfferings
|
||||
type DescribeReservedElasticsearchInstanceOfferingsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Set this value to limit the number of results returned. If not specified,
|
||||
// defaults to 100.
|
||||
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
|
||||
|
||||
// NextToken should be sent in case if earlier API call produced result containing
|
||||
// NextToken. It is used for pagination.
|
||||
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
|
||||
|
||||
// The offering identifier filter value. Use this parameter to show only the
|
||||
// available offering that matches the specified reservation identifier.
|
||||
ReservedElasticsearchInstanceOfferingId *string `location:"querystring" locationName:"offeringId" type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeReservedElasticsearchInstanceOfferingsInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeReservedElasticsearchInstanceOfferingsInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetMaxResults sets the MaxResults field's value.
|
||||
func (s *DescribeReservedElasticsearchInstanceOfferingsInput) SetMaxResults(v int64) *DescribeReservedElasticsearchInstanceOfferingsInput {
|
||||
s.MaxResults = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNextToken sets the NextToken field's value.
|
||||
func (s *DescribeReservedElasticsearchInstanceOfferingsInput) SetNextToken(v string) *DescribeReservedElasticsearchInstanceOfferingsInput {
|
||||
s.NextToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservedElasticsearchInstanceOfferingId sets the ReservedElasticsearchInstanceOfferingId field's value.
|
||||
func (s *DescribeReservedElasticsearchInstanceOfferingsInput) SetReservedElasticsearchInstanceOfferingId(v string) *DescribeReservedElasticsearchInstanceOfferingsInput {
|
||||
s.ReservedElasticsearchInstanceOfferingId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Container for results from DescribeReservedElasticsearchInstanceOfferings
|
||||
type DescribeReservedElasticsearchInstanceOfferingsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Provides an identifier to allow retrieval of paginated results.
|
||||
NextToken *string `type:"string"`
|
||||
|
||||
// List of reserved Elasticsearch instance offerings
|
||||
ReservedElasticsearchInstanceOfferings []*ReservedElasticsearchInstanceOffering `type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeReservedElasticsearchInstanceOfferingsOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeReservedElasticsearchInstanceOfferingsOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetNextToken sets the NextToken field's value.
|
||||
func (s *DescribeReservedElasticsearchInstanceOfferingsOutput) SetNextToken(v string) *DescribeReservedElasticsearchInstanceOfferingsOutput {
|
||||
s.NextToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservedElasticsearchInstanceOfferings sets the ReservedElasticsearchInstanceOfferings field's value.
|
||||
func (s *DescribeReservedElasticsearchInstanceOfferingsOutput) SetReservedElasticsearchInstanceOfferings(v []*ReservedElasticsearchInstanceOffering) *DescribeReservedElasticsearchInstanceOfferingsOutput {
|
||||
s.ReservedElasticsearchInstanceOfferings = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Container for parameters to DescribeReservedElasticsearchInstances
|
||||
type DescribeReservedElasticsearchInstancesInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Set this value to limit the number of results returned. If not specified,
|
||||
// defaults to 100.
|
||||
MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
|
||||
|
||||
// NextToken should be sent in case if earlier API call produced result containing
|
||||
// NextToken. It is used for pagination.
|
||||
NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
|
||||
|
||||
// The reserved instance identifier filter value. Use this parameter to show
|
||||
// only the reservation that matches the specified reserved Elasticsearch instance
|
||||
// ID.
|
||||
ReservedElasticsearchInstanceId *string `location:"querystring" locationName:"reservationId" type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeReservedElasticsearchInstancesInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeReservedElasticsearchInstancesInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetMaxResults sets the MaxResults field's value.
|
||||
func (s *DescribeReservedElasticsearchInstancesInput) SetMaxResults(v int64) *DescribeReservedElasticsearchInstancesInput {
|
||||
s.MaxResults = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNextToken sets the NextToken field's value.
|
||||
func (s *DescribeReservedElasticsearchInstancesInput) SetNextToken(v string) *DescribeReservedElasticsearchInstancesInput {
|
||||
s.NextToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservedElasticsearchInstanceId sets the ReservedElasticsearchInstanceId field's value.
|
||||
func (s *DescribeReservedElasticsearchInstancesInput) SetReservedElasticsearchInstanceId(v string) *DescribeReservedElasticsearchInstancesInput {
|
||||
s.ReservedElasticsearchInstanceId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Container for results from DescribeReservedElasticsearchInstances
|
||||
type DescribeReservedElasticsearchInstancesOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Provides an identifier to allow retrieval of paginated results.
|
||||
NextToken *string `type:"string"`
|
||||
|
||||
// List of reserved Elasticsearch instances.
|
||||
ReservedElasticsearchInstances []*ReservedElasticsearchInstance `type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeReservedElasticsearchInstancesOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeReservedElasticsearchInstancesOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetNextToken sets the NextToken field's value.
|
||||
func (s *DescribeReservedElasticsearchInstancesOutput) SetNextToken(v string) *DescribeReservedElasticsearchInstancesOutput {
|
||||
s.NextToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservedElasticsearchInstances sets the ReservedElasticsearchInstances field's value.
|
||||
func (s *DescribeReservedElasticsearchInstancesOutput) SetReservedElasticsearchInstances(v []*ReservedElasticsearchInstance) *DescribeReservedElasticsearchInstancesOutput {
|
||||
s.ReservedElasticsearchInstances = v
|
||||
return s
|
||||
}
|
||||
|
||||
type DomainInfo struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
@ -3491,6 +4038,142 @@ func (s *OptionStatus) SetUpdateVersion(v int64) *OptionStatus {
|
|||
return s
|
||||
}
|
||||
|
||||
// Container for parameters to PurchaseReservedElasticsearchInstanceOffering
|
||||
type PurchaseReservedElasticsearchInstanceOfferingInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The number of Elasticsearch instances to reserve.
|
||||
InstanceCount *int64 `min:"1" type:"integer"`
|
||||
|
||||
// A customer-specified identifier to track this reservation.
|
||||
//
|
||||
// ReservationName is a required field
|
||||
ReservationName *string `min:"5" type:"string" required:"true"`
|
||||
|
||||
// The ID of the reserved Elasticsearch instance offering to purchase.
|
||||
//
|
||||
// ReservedElasticsearchInstanceOfferingId is a required field
|
||||
ReservedElasticsearchInstanceOfferingId *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s PurchaseReservedElasticsearchInstanceOfferingInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s PurchaseReservedElasticsearchInstanceOfferingInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *PurchaseReservedElasticsearchInstanceOfferingInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedElasticsearchInstanceOfferingInput"}
|
||||
if s.InstanceCount != nil && *s.InstanceCount < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1))
|
||||
}
|
||||
if s.ReservationName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("ReservationName"))
|
||||
}
|
||||
if s.ReservationName != nil && len(*s.ReservationName) < 5 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("ReservationName", 5))
|
||||
}
|
||||
if s.ReservedElasticsearchInstanceOfferingId == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("ReservedElasticsearchInstanceOfferingId"))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetInstanceCount sets the InstanceCount field's value.
|
||||
func (s *PurchaseReservedElasticsearchInstanceOfferingInput) SetInstanceCount(v int64) *PurchaseReservedElasticsearchInstanceOfferingInput {
|
||||
s.InstanceCount = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservationName sets the ReservationName field's value.
|
||||
func (s *PurchaseReservedElasticsearchInstanceOfferingInput) SetReservationName(v string) *PurchaseReservedElasticsearchInstanceOfferingInput {
|
||||
s.ReservationName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservedElasticsearchInstanceOfferingId sets the ReservedElasticsearchInstanceOfferingId field's value.
|
||||
func (s *PurchaseReservedElasticsearchInstanceOfferingInput) SetReservedElasticsearchInstanceOfferingId(v string) *PurchaseReservedElasticsearchInstanceOfferingInput {
|
||||
s.ReservedElasticsearchInstanceOfferingId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Represents the output of a PurchaseReservedElasticsearchInstanceOffering
|
||||
// operation.
|
||||
type PurchaseReservedElasticsearchInstanceOfferingOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The customer-specified identifier used to track this reservation.
|
||||
ReservationName *string `min:"5" type:"string"`
|
||||
|
||||
// Details of the reserved Elasticsearch instance which was purchased.
|
||||
ReservedElasticsearchInstanceId *string `type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s PurchaseReservedElasticsearchInstanceOfferingOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s PurchaseReservedElasticsearchInstanceOfferingOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetReservationName sets the ReservationName field's value.
|
||||
func (s *PurchaseReservedElasticsearchInstanceOfferingOutput) SetReservationName(v string) *PurchaseReservedElasticsearchInstanceOfferingOutput {
|
||||
s.ReservationName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservedElasticsearchInstanceId sets the ReservedElasticsearchInstanceId field's value.
|
||||
func (s *PurchaseReservedElasticsearchInstanceOfferingOutput) SetReservedElasticsearchInstanceId(v string) *PurchaseReservedElasticsearchInstanceOfferingOutput {
|
||||
s.ReservedElasticsearchInstanceId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Contains the specific price and frequency of a recurring charges for a reserved
|
||||
// Elasticsearch instance, or for a reserved Elasticsearch instance offering.
|
||||
type RecurringCharge struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The monetary amount of the recurring charge.
|
||||
RecurringChargeAmount *float64 `type:"double"`
|
||||
|
||||
// The frequency of the recurring charge.
|
||||
RecurringChargeFrequency *string `type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s RecurringCharge) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s RecurringCharge) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetRecurringChargeAmount sets the RecurringChargeAmount field's value.
|
||||
func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge {
|
||||
s.RecurringChargeAmount = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value.
|
||||
func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge {
|
||||
s.RecurringChargeFrequency = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Container for the parameters to the RemoveTags operation. Specify the ARN
|
||||
// for the Elasticsearch domain from which you want to remove the specified
|
||||
// TagKey.
|
||||
|
@ -3562,6 +4245,232 @@ func (s RemoveTagsOutput) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
// Details of a reserved Elasticsearch instance.
|
||||
type ReservedElasticsearchInstance struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The currency code for the reserved Elasticsearch instance offering.
|
||||
CurrencyCode *string `type:"string"`
|
||||
|
||||
// The duration, in seconds, for which the Elasticsearch instance is reserved.
|
||||
Duration *int64 `type:"integer"`
|
||||
|
||||
// The number of Elasticsearch instances that have been reserved.
|
||||
ElasticsearchInstanceCount *int64 `type:"integer"`
|
||||
|
||||
// The Elasticsearch instance type offered by the reserved instance offering.
|
||||
ElasticsearchInstanceType *string `type:"string" enum:"ESPartitionInstanceType"`
|
||||
|
||||
// The upfront fixed charge you will paid to purchase the specific reserved
|
||||
// Elasticsearch instance offering.
|
||||
FixedPrice *float64 `type:"double"`
|
||||
|
||||
// The payment option as defined in the reserved Elasticsearch instance offering.
|
||||
PaymentOption *string `type:"string" enum:"ReservedElasticsearchInstancePaymentOption"`
|
||||
|
||||
// The charge to your account regardless of whether you are creating any domains
|
||||
// using the instance offering.
|
||||
RecurringCharges []*RecurringCharge `type:"list"`
|
||||
|
||||
// The customer-specified identifier to track this reservation.
|
||||
ReservationName *string `min:"5" type:"string"`
|
||||
|
||||
// The unique identifier for the reservation.
|
||||
ReservedElasticsearchInstanceId *string `type:"string"`
|
||||
|
||||
// The offering identifier.
|
||||
ReservedElasticsearchInstanceOfferingId *string `type:"string"`
|
||||
|
||||
// The time the reservation started.
|
||||
StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
|
||||
// The state of the reserved Elasticsearch instance.
|
||||
State *string `type:"string"`
|
||||
|
||||
// The rate you are charged for each hour for the domain that is using this
|
||||
// reserved instance.
|
||||
UsagePrice *float64 `type:"double"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s ReservedElasticsearchInstance) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s ReservedElasticsearchInstance) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetCurrencyCode sets the CurrencyCode field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetCurrencyCode(v string) *ReservedElasticsearchInstance {
|
||||
s.CurrencyCode = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetDuration sets the Duration field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetDuration(v int64) *ReservedElasticsearchInstance {
|
||||
s.Duration = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetElasticsearchInstanceCount sets the ElasticsearchInstanceCount field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetElasticsearchInstanceCount(v int64) *ReservedElasticsearchInstance {
|
||||
s.ElasticsearchInstanceCount = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetElasticsearchInstanceType sets the ElasticsearchInstanceType field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetElasticsearchInstanceType(v string) *ReservedElasticsearchInstance {
|
||||
s.ElasticsearchInstanceType = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetFixedPrice sets the FixedPrice field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetFixedPrice(v float64) *ReservedElasticsearchInstance {
|
||||
s.FixedPrice = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPaymentOption sets the PaymentOption field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetPaymentOption(v string) *ReservedElasticsearchInstance {
|
||||
s.PaymentOption = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRecurringCharges sets the RecurringCharges field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetRecurringCharges(v []*RecurringCharge) *ReservedElasticsearchInstance {
|
||||
s.RecurringCharges = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservationName sets the ReservationName field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetReservationName(v string) *ReservedElasticsearchInstance {
|
||||
s.ReservationName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservedElasticsearchInstanceId sets the ReservedElasticsearchInstanceId field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetReservedElasticsearchInstanceId(v string) *ReservedElasticsearchInstance {
|
||||
s.ReservedElasticsearchInstanceId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservedElasticsearchInstanceOfferingId sets the ReservedElasticsearchInstanceOfferingId field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetReservedElasticsearchInstanceOfferingId(v string) *ReservedElasticsearchInstance {
|
||||
s.ReservedElasticsearchInstanceOfferingId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetStartTime sets the StartTime field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetStartTime(v time.Time) *ReservedElasticsearchInstance {
|
||||
s.StartTime = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetState sets the State field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetState(v string) *ReservedElasticsearchInstance {
|
||||
s.State = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetUsagePrice sets the UsagePrice field's value.
|
||||
func (s *ReservedElasticsearchInstance) SetUsagePrice(v float64) *ReservedElasticsearchInstance {
|
||||
s.UsagePrice = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Details of a reserved Elasticsearch instance offering.
|
||||
type ReservedElasticsearchInstanceOffering struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The currency code for the reserved Elasticsearch instance offering.
|
||||
CurrencyCode *string `type:"string"`
|
||||
|
||||
// The duration, in seconds, for which the offering will reserve the Elasticsearch
|
||||
// instance.
|
||||
Duration *int64 `type:"integer"`
|
||||
|
||||
// The Elasticsearch instance type offered by the reserved instance offering.
|
||||
ElasticsearchInstanceType *string `type:"string" enum:"ESPartitionInstanceType"`
|
||||
|
||||
// The upfront fixed charge you will pay to purchase the specific reserved Elasticsearch
|
||||
// instance offering.
|
||||
FixedPrice *float64 `type:"double"`
|
||||
|
||||
// Payment option for the reserved Elasticsearch instance offering
|
||||
PaymentOption *string `type:"string" enum:"ReservedElasticsearchInstancePaymentOption"`
|
||||
|
||||
// The charge to your account regardless of whether you are creating any domains
|
||||
// using the instance offering.
|
||||
RecurringCharges []*RecurringCharge `type:"list"`
|
||||
|
||||
// The Elasticsearch reserved instance offering identifier.
|
||||
ReservedElasticsearchInstanceOfferingId *string `type:"string"`
|
||||
|
||||
// The rate you are charged for each hour the domain that is using the offering
|
||||
// is running.
|
||||
UsagePrice *float64 `type:"double"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s ReservedElasticsearchInstanceOffering) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s ReservedElasticsearchInstanceOffering) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetCurrencyCode sets the CurrencyCode field's value.
|
||||
func (s *ReservedElasticsearchInstanceOffering) SetCurrencyCode(v string) *ReservedElasticsearchInstanceOffering {
|
||||
s.CurrencyCode = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetDuration sets the Duration field's value.
|
||||
func (s *ReservedElasticsearchInstanceOffering) SetDuration(v int64) *ReservedElasticsearchInstanceOffering {
|
||||
s.Duration = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetElasticsearchInstanceType sets the ElasticsearchInstanceType field's value.
|
||||
func (s *ReservedElasticsearchInstanceOffering) SetElasticsearchInstanceType(v string) *ReservedElasticsearchInstanceOffering {
|
||||
s.ElasticsearchInstanceType = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetFixedPrice sets the FixedPrice field's value.
|
||||
func (s *ReservedElasticsearchInstanceOffering) SetFixedPrice(v float64) *ReservedElasticsearchInstanceOffering {
|
||||
s.FixedPrice = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPaymentOption sets the PaymentOption field's value.
|
||||
func (s *ReservedElasticsearchInstanceOffering) SetPaymentOption(v string) *ReservedElasticsearchInstanceOffering {
|
||||
s.PaymentOption = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRecurringCharges sets the RecurringCharges field's value.
|
||||
func (s *ReservedElasticsearchInstanceOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedElasticsearchInstanceOffering {
|
||||
s.RecurringCharges = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetReservedElasticsearchInstanceOfferingId sets the ReservedElasticsearchInstanceOfferingId field's value.
|
||||
func (s *ReservedElasticsearchInstanceOffering) SetReservedElasticsearchInstanceOfferingId(v string) *ReservedElasticsearchInstanceOffering {
|
||||
s.ReservedElasticsearchInstanceOfferingId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetUsagePrice sets the UsagePrice field's value.
|
||||
func (s *ReservedElasticsearchInstanceOffering) SetUsagePrice(v float64) *ReservedElasticsearchInstanceOffering {
|
||||
s.UsagePrice = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Specifies the time, in UTC format, when the service takes a daily automated
|
||||
// snapshot of the specified Elasticsearch domain. Default value is 0 hours.
|
||||
type SnapshotOptions struct {
|
||||
|
@ -4210,6 +5119,17 @@ const (
|
|||
OptionStateActive = "Active"
|
||||
)
|
||||
|
||||
const (
|
||||
// ReservedElasticsearchInstancePaymentOptionAllUpfront is a ReservedElasticsearchInstancePaymentOption enum value
|
||||
ReservedElasticsearchInstancePaymentOptionAllUpfront = "ALL_UPFRONT"
|
||||
|
||||
// ReservedElasticsearchInstancePaymentOptionPartialUpfront is a ReservedElasticsearchInstancePaymentOption enum value
|
||||
ReservedElasticsearchInstancePaymentOptionPartialUpfront = "PARTIAL_UPFRONT"
|
||||
|
||||
// ReservedElasticsearchInstancePaymentOptionNoUpfront is a ReservedElasticsearchInstancePaymentOption enum value
|
||||
ReservedElasticsearchInstancePaymentOptionNoUpfront = "NO_UPFRONT"
|
||||
)
|
||||
|
||||
// The type of EBS volume, standard, gp2, or io1. See Configuring EBS-based
|
||||
// Storage (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-ebs)for
|
||||
// more information.
|
||||
|
|
|
@ -92,6 +92,20 @@ type ElasticsearchServiceAPI interface {
|
|||
DescribeElasticsearchInstanceTypeLimitsWithContext(aws.Context, *elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsInput, ...request.Option) (*elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsOutput, error)
|
||||
DescribeElasticsearchInstanceTypeLimitsRequest(*elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsInput) (*request.Request, *elasticsearchservice.DescribeElasticsearchInstanceTypeLimitsOutput)
|
||||
|
||||
DescribeReservedElasticsearchInstanceOfferings(*elasticsearchservice.DescribeReservedElasticsearchInstanceOfferingsInput) (*elasticsearchservice.DescribeReservedElasticsearchInstanceOfferingsOutput, error)
|
||||
DescribeReservedElasticsearchInstanceOfferingsWithContext(aws.Context, *elasticsearchservice.DescribeReservedElasticsearchInstanceOfferingsInput, ...request.Option) (*elasticsearchservice.DescribeReservedElasticsearchInstanceOfferingsOutput, error)
|
||||
DescribeReservedElasticsearchInstanceOfferingsRequest(*elasticsearchservice.DescribeReservedElasticsearchInstanceOfferingsInput) (*request.Request, *elasticsearchservice.DescribeReservedElasticsearchInstanceOfferingsOutput)
|
||||
|
||||
DescribeReservedElasticsearchInstanceOfferingsPages(*elasticsearchservice.DescribeReservedElasticsearchInstanceOfferingsInput, func(*elasticsearchservice.DescribeReservedElasticsearchInstanceOfferingsOutput, bool) bool) error
|
||||
DescribeReservedElasticsearchInstanceOfferingsPagesWithContext(aws.Context, *elasticsearchservice.DescribeReservedElasticsearchInstanceOfferingsInput, func(*elasticsearchservice.DescribeReservedElasticsearchInstanceOfferingsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeReservedElasticsearchInstances(*elasticsearchservice.DescribeReservedElasticsearchInstancesInput) (*elasticsearchservice.DescribeReservedElasticsearchInstancesOutput, error)
|
||||
DescribeReservedElasticsearchInstancesWithContext(aws.Context, *elasticsearchservice.DescribeReservedElasticsearchInstancesInput, ...request.Option) (*elasticsearchservice.DescribeReservedElasticsearchInstancesOutput, error)
|
||||
DescribeReservedElasticsearchInstancesRequest(*elasticsearchservice.DescribeReservedElasticsearchInstancesInput) (*request.Request, *elasticsearchservice.DescribeReservedElasticsearchInstancesOutput)
|
||||
|
||||
DescribeReservedElasticsearchInstancesPages(*elasticsearchservice.DescribeReservedElasticsearchInstancesInput, func(*elasticsearchservice.DescribeReservedElasticsearchInstancesOutput, bool) bool) error
|
||||
DescribeReservedElasticsearchInstancesPagesWithContext(aws.Context, *elasticsearchservice.DescribeReservedElasticsearchInstancesInput, func(*elasticsearchservice.DescribeReservedElasticsearchInstancesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListDomainNames(*elasticsearchservice.ListDomainNamesInput) (*elasticsearchservice.ListDomainNamesOutput, error)
|
||||
ListDomainNamesWithContext(aws.Context, *elasticsearchservice.ListDomainNamesInput, ...request.Option) (*elasticsearchservice.ListDomainNamesOutput, error)
|
||||
ListDomainNamesRequest(*elasticsearchservice.ListDomainNamesInput) (*request.Request, *elasticsearchservice.ListDomainNamesOutput)
|
||||
|
@ -114,6 +128,10 @@ type ElasticsearchServiceAPI interface {
|
|||
ListTagsWithContext(aws.Context, *elasticsearchservice.ListTagsInput, ...request.Option) (*elasticsearchservice.ListTagsOutput, error)
|
||||
ListTagsRequest(*elasticsearchservice.ListTagsInput) (*request.Request, *elasticsearchservice.ListTagsOutput)
|
||||
|
||||
PurchaseReservedElasticsearchInstanceOffering(*elasticsearchservice.PurchaseReservedElasticsearchInstanceOfferingInput) (*elasticsearchservice.PurchaseReservedElasticsearchInstanceOfferingOutput, error)
|
||||
PurchaseReservedElasticsearchInstanceOfferingWithContext(aws.Context, *elasticsearchservice.PurchaseReservedElasticsearchInstanceOfferingInput, ...request.Option) (*elasticsearchservice.PurchaseReservedElasticsearchInstanceOfferingOutput, error)
|
||||
PurchaseReservedElasticsearchInstanceOfferingRequest(*elasticsearchservice.PurchaseReservedElasticsearchInstanceOfferingInput) (*request.Request, *elasticsearchservice.PurchaseReservedElasticsearchInstanceOfferingOutput)
|
||||
|
||||
RemoveTags(*elasticsearchservice.RemoveTagsInput) (*elasticsearchservice.RemoveTagsOutput, error)
|
||||
RemoveTagsWithContext(aws.Context, *elasticsearchservice.RemoveTagsInput, ...request.Option) (*elasticsearchservice.RemoveTagsOutput, error)
|
||||
RemoveTagsRequest(*elasticsearchservice.RemoveTagsInput) (*request.Request, *elasticsearchservice.RemoveTagsOutput)
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "es" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "es" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Elasticsearch Service" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ElasticsearchService 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,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "elastictranscoder" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "elastictranscoder" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Elastic Transcoder" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ElasticTranscoder 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,
|
||||
|
|
6
vendor/github.com/aws/aws-sdk-go/service/elb/service.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go/service/elb/service.go
generated
vendored
|
@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
|||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "elasticloadbalancing" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "elasticloadbalancing" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceID = "Elastic Load Balancing" // ServiceID is a unique identifer of a specific service
|
||||
)
|
||||
|
||||
// New creates a new instance of the ELB 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,
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue