mirror of
https://github.com/rclone/rclone.git
synced 2025-12-15 15:53:41 +00:00
vendor: update github.com/aws/aws-sdk-go to get plan9 build fix
This commit is contained in:
263
vendor/github.com/aws/aws-sdk-go/service/elb/api.go
generated
vendored
263
vendor/github.com/aws/aws-sdk-go/service/elb/api.go
generated
vendored
@@ -63,7 +63,7 @@ func (c *ELB) AddTagsRequest(input *AddTagsInput) (req *request.Request, output
|
||||
// key is already associated with the load balancer, AddTags updates its value.
|
||||
//
|
||||
// For more information, see Tag Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -155,7 +155,7 @@ func (c *ELB) ApplySecurityGroupsToLoadBalancerRequest(input *ApplySecurityGroup
|
||||
// associated security groups.
|
||||
//
|
||||
// For more information, see Security Groups for Load Balancers in a VPC (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-security-groups.html#elb-vpc-security-groups)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -247,7 +247,7 @@ func (c *ELB) AttachLoadBalancerToSubnetsRequest(input *AttachLoadBalancerToSubn
|
||||
// The load balancer evenly distributes requests across all registered subnets.
|
||||
// For more information, see Add or Remove Subnets for Your Load Balancer in
|
||||
// a VPC (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-manage-subnets.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -341,7 +341,7 @@ func (c *ELB) ConfigureHealthCheckRequest(input *ConfigureHealthCheckInput) (req
|
||||
//
|
||||
// For more information, see Configure Health Checks for Your Load Balancer
|
||||
// (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-healthchecks.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -435,7 +435,7 @@ func (c *ELB) CreateAppCookieStickinessPolicyRequest(input *CreateAppCookieStick
|
||||
// being sticky until a new application cookie is issued.
|
||||
//
|
||||
// For more information, see Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -540,7 +540,7 @@ func (c *ELB) CreateLBCookieStickinessPolicyRequest(input *CreateLBCookieStickin
|
||||
// cookie expiration time, which is specified in the policy configuration.
|
||||
//
|
||||
// For more information, see Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -629,7 +629,7 @@ func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *re
|
||||
|
||||
// CreateLoadBalancer API operation for Elastic Load Balancing.
|
||||
//
|
||||
// Creates a Classic load balancer.
|
||||
// Creates a Classic Load Balancer.
|
||||
//
|
||||
// You can add listeners, security groups, subnets, and tags when you create
|
||||
// your load balancer, or you can add them later using CreateLoadBalancerListeners,
|
||||
@@ -641,7 +641,7 @@ func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *re
|
||||
// You can create up to 20 load balancers per region per account. You can request
|
||||
// an increase for the number of load balancers for your account. For more information,
|
||||
// see Limits for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-limits.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -687,6 +687,7 @@ func (c *ELB) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (req *re
|
||||
// A tag key was specified more than once.
|
||||
//
|
||||
// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
|
||||
// The specified protocol or signature version is not supported.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancer
|
||||
func (c *ELB) CreateLoadBalancer(input *CreateLoadBalancerInput) (*CreateLoadBalancerOutput, error) {
|
||||
@@ -761,7 +762,7 @@ func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListen
|
||||
// listener.
|
||||
//
|
||||
// For more information, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -788,6 +789,7 @@ func (c *ELB) CreateLoadBalancerListenersRequest(input *CreateLoadBalancerListen
|
||||
// The requested configuration change is not valid.
|
||||
//
|
||||
// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
|
||||
// The specified protocol or signature version is not supported.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/CreateLoadBalancerListeners
|
||||
func (c *ELB) CreateLoadBalancerListeners(input *CreateLoadBalancerListenersInput) (*CreateLoadBalancerListenersOutput, error) {
|
||||
@@ -1208,7 +1210,7 @@ func (c *ELB) DeregisterInstancesFromLoadBalancerRequest(input *DeregisterInstan
|
||||
// from the load balancer.
|
||||
//
|
||||
// For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -1246,6 +1248,85 @@ func (c *ELB) DeregisterInstancesFromLoadBalancerWithContext(ctx aws.Context, in
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDescribeAccountLimits = "DescribeAccountLimits"
|
||||
|
||||
// DescribeAccountLimitsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAccountLimits operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// See DescribeAccountLimits for usage and error information.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAccountLimits method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAccountLimitsRequest method.
|
||||
// req, resp := client.DescribeAccountLimitsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccountLimits
|
||||
func (c *ELB) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeAccountLimits,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DescribeAccountLimitsInput{}
|
||||
}
|
||||
|
||||
output = &DescribeAccountLimitsOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// DescribeAccountLimits API operation for Elastic Load Balancing.
|
||||
//
|
||||
// Describes the current Elastic Load Balancing resource limits for your AWS
|
||||
// account.
|
||||
//
|
||||
// For more information, see Limits for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-limits.html)
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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 Elastic Load Balancing's
|
||||
// API operation DescribeAccountLimits for usage and error information.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccountLimits
|
||||
func (c *ELB) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) {
|
||||
req, out := c.DescribeAccountLimitsRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DescribeAccountLimitsWithContext is the same as DescribeAccountLimits with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DescribeAccountLimits 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 *ELB) DescribeAccountLimitsWithContext(ctx aws.Context, input *DescribeAccountLimitsInput, opts ...request.Option) (*DescribeAccountLimitsOutput, error) {
|
||||
req, out := c.DescribeAccountLimitsRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDescribeInstanceHealth = "DescribeInstanceHealth"
|
||||
|
||||
// DescribeInstanceHealthRequest generates a "aws/request.Request" representing the
|
||||
@@ -1960,7 +2041,7 @@ func (c *ELB) DisableAvailabilityZonesForLoadBalancerRequest(input *DisableAvail
|
||||
// the traffic among its remaining Availability Zones.
|
||||
//
|
||||
// For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -2050,7 +2131,7 @@ func (c *ELB) EnableAvailabilityZonesForLoadBalancerRequest(input *EnableAvailab
|
||||
// Zones that contain instances.
|
||||
//
|
||||
// For more information, see Add or Remove Availability Zones (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-az.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -2137,7 +2218,7 @@ func (c *ELB) ModifyLoadBalancerAttributesRequest(input *ModifyLoadBalancerAttri
|
||||
// can modify the load balancer attribute ConnectionSettings by specifying an
|
||||
// idle connection timeout value for your load balancer.
|
||||
//
|
||||
// For more information, see the following in the Classic Load Balancers Guide:
|
||||
// For more information, see the following in the Classic Load Balancer Guide:
|
||||
//
|
||||
// * Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)
|
||||
//
|
||||
@@ -2253,7 +2334,7 @@ func (c *ELB) RegisterInstancesWithLoadBalancerRequest(input *RegisterInstancesW
|
||||
// To deregister instances from a load balancer, use DeregisterInstancesFromLoadBalancer.
|
||||
//
|
||||
// For more information, see Register or De-Register EC2 Instances (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-deregister-register-instances.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -2422,7 +2503,7 @@ func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalance
|
||||
//
|
||||
// For more information about updating your SSL certificate, see Replace the
|
||||
// SSL Certificate for Your Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-update-ssl-cert.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -2448,6 +2529,7 @@ func (c *ELB) SetLoadBalancerListenerSSLCertificateRequest(input *SetLoadBalance
|
||||
// The requested configuration change is not valid.
|
||||
//
|
||||
// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol"
|
||||
// The specified protocol or signature version is not supported.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/SetLoadBalancerListenerSSLCertificate
|
||||
func (c *ELB) SetLoadBalancerListenerSSLCertificate(input *SetLoadBalancerListenerSSLCertificateInput) (*SetLoadBalancerListenerSSLCertificateOutput, error) {
|
||||
@@ -2529,9 +2611,9 @@ func (c *ELB) SetLoadBalancerPoliciesForBackendServerRequest(input *SetLoadBalan
|
||||
//
|
||||
// For more information about enabling back-end instance authentication, see
|
||||
// Configure Back-end Instance Authentication (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-create-https-ssl-load-balancer.html#configure_backendauth_clt)
|
||||
// in the Classic Load Balancers Guide. For more information about Proxy Protocol,
|
||||
// in the Classic Load Balancer Guide. For more information about Proxy Protocol,
|
||||
// see Configure Proxy Protocol Support (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-proxy-protocol.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -2626,7 +2708,7 @@ func (c *ELB) SetLoadBalancerPoliciesOfListenerRequest(input *SetLoadBalancerPol
|
||||
// Configuration (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ssl-config-update.html),
|
||||
// Duration-Based Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-duration),
|
||||
// and Application-Controlled Session Stickiness (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-sticky-sessions.html#enable-sticky-sessions-application)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// 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
|
||||
@@ -3452,7 +3534,7 @@ type CreateLoadBalancerInput struct {
|
||||
// The listeners.
|
||||
//
|
||||
// For more information, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
//
|
||||
// Listeners is a required field
|
||||
Listeners []*Listener `type:"list" required:"true"`
|
||||
@@ -3489,7 +3571,7 @@ type CreateLoadBalancerInput struct {
|
||||
//
|
||||
// For more information about tagging your load balancer, see Tag Your Classic
|
||||
// Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/add-remove-tags.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
Tags []*Tag `min:"1" type:"list"`
|
||||
}
|
||||
|
||||
@@ -4098,6 +4180,87 @@ func (s *DeregisterInstancesFromLoadBalancerOutput) SetInstances(v []*Instance)
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccountLimitsInput
|
||||
type DescribeAccountLimitsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The marker for the next set of results. (You received this marker from a
|
||||
// previous call.)
|
||||
Marker *string `type:"string"`
|
||||
|
||||
// The maximum number of results to return with this call.
|
||||
PageSize *int64 `min:"1" type:"integer"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeAccountLimitsInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeAccountLimitsInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *DescribeAccountLimitsInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "DescribeAccountLimitsInput"}
|
||||
if s.PageSize != nil && *s.PageSize < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetMarker sets the Marker field's value.
|
||||
func (s *DescribeAccountLimitsInput) SetMarker(v string) *DescribeAccountLimitsInput {
|
||||
s.Marker = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPageSize sets the PageSize field's value.
|
||||
func (s *DescribeAccountLimitsInput) SetPageSize(v int64) *DescribeAccountLimitsInput {
|
||||
s.PageSize = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeAccountLimitsOutput
|
||||
type DescribeAccountLimitsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Information about the limits.
|
||||
Limits []*Limit `type:"list"`
|
||||
|
||||
// The marker to use when requesting the next set of results. If there are no
|
||||
// additional results, the string is empty.
|
||||
NextMarker *string `type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeAccountLimitsOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeAccountLimitsOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetLimits sets the Limits field's value.
|
||||
func (s *DescribeAccountLimitsOutput) SetLimits(v []*Limit) *DescribeAccountLimitsOutput {
|
||||
s.Limits = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNextMarker sets the NextMarker field's value.
|
||||
func (s *DescribeAccountLimitsOutput) SetNextMarker(v string) *DescribeAccountLimitsOutput {
|
||||
s.NextMarker = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Contains the parameters for DescribeInstanceHealth.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/DescribeEndPointStateInput
|
||||
type DescribeInstanceHealthInput struct {
|
||||
@@ -5023,11 +5186,49 @@ func (s *LBCookieStickinessPolicy) SetPolicyName(v string) *LBCookieStickinessPo
|
||||
return s
|
||||
}
|
||||
|
||||
// Information about an Elastic Load Balancing resource limit for your AWS account.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/Limit
|
||||
type Limit struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The maximum value of the limit.
|
||||
Max *string `type:"string"`
|
||||
|
||||
// The name of the limit. The possible values are:
|
||||
//
|
||||
// * classic-listeners
|
||||
//
|
||||
// * classic-load-balancers
|
||||
Name *string `type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s Limit) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s Limit) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetMax sets the Max field's value.
|
||||
func (s *Limit) SetMax(v string) *Limit {
|
||||
s.Max = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetName sets the Name field's value.
|
||||
func (s *Limit) SetName(v string) *Limit {
|
||||
s.Name = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Information about a listener.
|
||||
//
|
||||
// For information about the protocols and the ports supported by Elastic Load
|
||||
// Balancing, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/Listener
|
||||
type Listener struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -5134,11 +5335,7 @@ func (s *Listener) SetSSLCertificateId(v string) *Listener {
|
||||
type ListenerDescription struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Information about a listener.
|
||||
//
|
||||
// For information about the protocols and the ports supported by Elastic Load
|
||||
// Balancing, see Listeners for Your Classic Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/elb-listener-config.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// The listener.
|
||||
Listener *Listener `type:"structure"`
|
||||
|
||||
// The policies. If there are no policies enabled, the list is empty.
|
||||
@@ -5176,7 +5373,7 @@ type LoadBalancerAttributes struct {
|
||||
// and delivers the information to the Amazon S3 bucket that you specify.
|
||||
//
|
||||
// For more information, see Enable Access Logs (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
AccessLog *AccessLog `type:"structure"`
|
||||
|
||||
// This parameter is reserved.
|
||||
@@ -5186,7 +5383,7 @@ type LoadBalancerAttributes struct {
|
||||
// the load balancer shifts traffic away from a deregistered or unhealthy instance.
|
||||
//
|
||||
// For more information, see Configure Connection Draining (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-conn-drain.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
ConnectionDraining *ConnectionDraining `type:"structure"`
|
||||
|
||||
// If enabled, the load balancer allows the connections to remain idle (no data
|
||||
@@ -5195,14 +5392,14 @@ type LoadBalancerAttributes struct {
|
||||
// By default, Elastic Load Balancing maintains a 60-second idle connection
|
||||
// timeout for both front-end and back-end connections of your load balancer.
|
||||
// For more information, see Configure Idle Connection Timeout (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
ConnectionSettings *ConnectionSettings `type:"structure"`
|
||||
|
||||
// If enabled, the load balancer routes the request traffic evenly across all
|
||||
// instances regardless of the Availability Zones.
|
||||
//
|
||||
// For more information, see Configure Cross-Zone Load Balancing (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-disable-crosszone-lb.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
CrossZoneLoadBalancing *CrossZoneLoadBalancing `type:"structure"`
|
||||
}
|
||||
|
||||
@@ -5290,7 +5487,7 @@ type LoadBalancerDescription struct {
|
||||
// The DNS name of the load balancer.
|
||||
//
|
||||
// For more information, see Configure a Custom Domain Name (http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/using-domain-names-with-elb.html)
|
||||
// in the Classic Load Balancers Guide.
|
||||
// in the Classic Load Balancer Guide.
|
||||
CanonicalHostedZoneName *string `type:"string"`
|
||||
|
||||
// The ID of the Amazon Route 53 hosted zone for the load balancer.
|
||||
@@ -5454,7 +5651,7 @@ func (s *LoadBalancerDescription) SetVPCId(v string) *LoadBalancerDescription {
|
||||
type ModifyLoadBalancerAttributesInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The attributes of the load balancer.
|
||||
// The attributes for the load balancer.
|
||||
//
|
||||
// LoadBalancerAttributes is a required field
|
||||
LoadBalancerAttributes *LoadBalancerAttributes `type:"structure" required:"true"`
|
||||
@@ -5513,7 +5710,7 @@ func (s *ModifyLoadBalancerAttributesInput) SetLoadBalancerName(v string) *Modif
|
||||
type ModifyLoadBalancerAttributesOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The attributes for a load balancer.
|
||||
// Information about the load balancer attributes.
|
||||
LoadBalancerAttributes *LoadBalancerAttributes `type:"structure"`
|
||||
|
||||
// The name of the load balancer.
|
||||
|
||||
13
vendor/github.com/aws/aws-sdk-go/service/elb/doc.go
generated
vendored
13
vendor/github.com/aws/aws-sdk-go/service/elb/doc.go
generated
vendored
@@ -12,17 +12,18 @@
|
||||
// the load balancer and a protocol and port number for connections from the
|
||||
// load balancer to the instances.
|
||||
//
|
||||
// Elastic Load Balancing supports two types of load balancers: Classic load
|
||||
// balancers and Application load balancers (new). A Classic load balancer makes
|
||||
// Elastic Load Balancing supports two types of load balancers: Classic Load
|
||||
// Balancers and Application Load Balancers (new). A Classic Load Balancer makes
|
||||
// routing and load balancing decisions either at the transport layer (TCP/SSL)
|
||||
// or the application layer (HTTP/HTTPS), and supports either EC2-Classic or
|
||||
// a VPC. An Application load balancer makes routing and load balancing decisions
|
||||
// a VPC. An Application Load Balancer makes routing and load balancing decisions
|
||||
// at the application layer (HTTP/HTTPS), supports path-based routing, and can
|
||||
// route requests to one or more ports on each EC2 instance or container instance
|
||||
// in your virtual private cloud (VPC). For more information, see the .
|
||||
// in your virtual private cloud (VPC). For more information, see the Elastic
|
||||
// Load Balancing User Guide (http://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/what-is-load-balancing.html).
|
||||
//
|
||||
// This reference covers the 2012-06-01 API, which supports Classic load balancers.
|
||||
// The 2015-12-01 API supports Application load balancers.
|
||||
// This reference covers the 2012-06-01 API, which supports Classic Load Balancers.
|
||||
// The 2015-12-01 API supports Application Load Balancers.
|
||||
//
|
||||
// To get started, create a load balancer with one or more listeners using CreateLoadBalancer.
|
||||
// Register your instances with the load balancer using RegisterInstancesWithLoadBalancer.
|
||||
|
||||
4
vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go/service/elb/elbiface/interface.go
generated
vendored
@@ -112,6 +112,10 @@ type ELBAPI interface {
|
||||
DeregisterInstancesFromLoadBalancerWithContext(aws.Context, *elb.DeregisterInstancesFromLoadBalancerInput, ...request.Option) (*elb.DeregisterInstancesFromLoadBalancerOutput, error)
|
||||
DeregisterInstancesFromLoadBalancerRequest(*elb.DeregisterInstancesFromLoadBalancerInput) (*request.Request, *elb.DeregisterInstancesFromLoadBalancerOutput)
|
||||
|
||||
DescribeAccountLimits(*elb.DescribeAccountLimitsInput) (*elb.DescribeAccountLimitsOutput, error)
|
||||
DescribeAccountLimitsWithContext(aws.Context, *elb.DescribeAccountLimitsInput, ...request.Option) (*elb.DescribeAccountLimitsOutput, error)
|
||||
DescribeAccountLimitsRequest(*elb.DescribeAccountLimitsInput) (*request.Request, *elb.DescribeAccountLimitsOutput)
|
||||
|
||||
DescribeInstanceHealth(*elb.DescribeInstanceHealthInput) (*elb.DescribeInstanceHealthOutput, error)
|
||||
DescribeInstanceHealthWithContext(aws.Context, *elb.DescribeInstanceHealthInput, ...request.Option) (*elb.DescribeInstanceHealthOutput, error)
|
||||
DescribeInstanceHealthRequest(*elb.DescribeInstanceHealthInput) (*request.Request, *elb.DescribeInstanceHealthOutput)
|
||||
|
||||
2
vendor/github.com/aws/aws-sdk-go/service/elb/errors.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/service/elb/errors.go
generated
vendored
@@ -130,5 +130,7 @@ const (
|
||||
|
||||
// ErrCodeUnsupportedProtocolException for service response error code
|
||||
// "UnsupportedProtocol".
|
||||
//
|
||||
// The specified protocol or signature version is not supported.
|
||||
ErrCodeUnsupportedProtocolException = "UnsupportedProtocol"
|
||||
)
|
||||
|
||||
22
vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go
generated
vendored
22
vendor/github.com/aws/aws-sdk-go/service/elb/examples_test.go
generated
vendored
@@ -377,6 +377,28 @@ func ExampleELB_DeregisterInstancesFromLoadBalancer() {
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleELB_DescribeAccountLimits() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := elb.New(sess)
|
||||
|
||||
params := &elb.DescribeAccountLimitsInput{
|
||||
Marker: aws.String("Marker"),
|
||||
PageSize: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.DescribeAccountLimits(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleELB_DescribeInstanceHealth() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
|
||||
204
vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go
generated
vendored
204
vendor/github.com/aws/aws-sdk-go/service/elbv2/api.go
generated
vendored
@@ -985,6 +985,85 @@ func (c *ELBV2) DeregisterTargetsWithContext(ctx aws.Context, input *DeregisterT
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDescribeAccountLimits = "DescribeAccountLimits"
|
||||
|
||||
// DescribeAccountLimitsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAccountLimits operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// See DescribeAccountLimits for usage and error information.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAccountLimits method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAccountLimitsRequest method.
|
||||
// req, resp := client.DescribeAccountLimitsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeAccountLimits
|
||||
func (c *ELBV2) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeAccountLimits,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DescribeAccountLimitsInput{}
|
||||
}
|
||||
|
||||
output = &DescribeAccountLimitsOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// DescribeAccountLimits API operation for Elastic Load Balancing.
|
||||
//
|
||||
// Describes the current Elastic Load Balancing resource limits for your AWS
|
||||
// account.
|
||||
//
|
||||
// For more information, see Limits for Your Application Load Balancer (http://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-limits.html)
|
||||
// in the Application Load Balancer Guide.
|
||||
//
|
||||
// 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 Elastic Load Balancing's
|
||||
// API operation DescribeAccountLimits for usage and error information.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeAccountLimits
|
||||
func (c *ELBV2) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) {
|
||||
req, out := c.DescribeAccountLimitsRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DescribeAccountLimitsWithContext is the same as DescribeAccountLimits with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DescribeAccountLimits 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 *ELBV2) DescribeAccountLimitsWithContext(ctx aws.Context, input *DescribeAccountLimitsInput, opts ...request.Option) (*DescribeAccountLimitsOutput, error) {
|
||||
req, out := c.DescribeAccountLimitsRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDescribeListeners = "DescribeListeners"
|
||||
|
||||
// DescribeListenersRequest generates a "aws/request.Request" representing the
|
||||
@@ -4094,6 +4173,87 @@ func (s DeregisterTargetsOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeAccountLimitsInput
|
||||
type DescribeAccountLimitsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The marker for the next set of results. (You received this marker from a
|
||||
// previous call.)
|
||||
Marker *string `type:"string"`
|
||||
|
||||
// The maximum number of results to return with this call.
|
||||
PageSize *int64 `min:"1" type:"integer"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeAccountLimitsInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeAccountLimitsInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *DescribeAccountLimitsInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "DescribeAccountLimitsInput"}
|
||||
if s.PageSize != nil && *s.PageSize < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("PageSize", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetMarker sets the Marker field's value.
|
||||
func (s *DescribeAccountLimitsInput) SetMarker(v string) *DescribeAccountLimitsInput {
|
||||
s.Marker = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetPageSize sets the PageSize field's value.
|
||||
func (s *DescribeAccountLimitsInput) SetPageSize(v int64) *DescribeAccountLimitsInput {
|
||||
s.PageSize = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeAccountLimitsOutput
|
||||
type DescribeAccountLimitsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Information about the limits.
|
||||
Limits []*Limit `type:"list"`
|
||||
|
||||
// The marker to use when requesting the next set of results. If there are no
|
||||
// additional results, the string is empty.
|
||||
NextMarker *string `type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeAccountLimitsOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeAccountLimitsOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetLimits sets the Limits field's value.
|
||||
func (s *DescribeAccountLimitsOutput) SetLimits(v []*Limit) *DescribeAccountLimitsOutput {
|
||||
s.Limits = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNextMarker sets the NextMarker field's value.
|
||||
func (s *DescribeAccountLimitsOutput) SetNextMarker(v string) *DescribeAccountLimitsOutput {
|
||||
s.NextMarker = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeListenersInput
|
||||
type DescribeListenersInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -4819,6 +4979,50 @@ func (s *DescribeTargetHealthOutput) SetTargetHealthDescriptions(v []*TargetHeal
|
||||
return s
|
||||
}
|
||||
|
||||
// Information about an Elastic Load Balancing resource limit for your AWS account.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Limit
|
||||
type Limit struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The maximum value of the limit.
|
||||
Max *string `type:"string"`
|
||||
|
||||
// The name of the limit. The possible values are:
|
||||
//
|
||||
// * application-load-balancers
|
||||
//
|
||||
// * listeners-per-application-load-balancer
|
||||
//
|
||||
// * rules-per-application-load-balancer
|
||||
//
|
||||
// * target-groups
|
||||
//
|
||||
// * targets-per-application-load-balancer
|
||||
Name *string `type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s Limit) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s Limit) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetMax sets the Max field's value.
|
||||
func (s *Limit) SetMax(v string) *Limit {
|
||||
s.Max = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetName sets the Name field's value.
|
||||
func (s *Limit) SetName(v string) *Limit {
|
||||
s.Name = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Information about a listener.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Listener
|
||||
type Listener struct {
|
||||
|
||||
4
vendor/github.com/aws/aws-sdk-go/service/elbv2/elbv2iface/interface.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go/service/elbv2/elbv2iface/interface.go
generated
vendored
@@ -100,6 +100,10 @@ type ELBV2API interface {
|
||||
DeregisterTargetsWithContext(aws.Context, *elbv2.DeregisterTargetsInput, ...request.Option) (*elbv2.DeregisterTargetsOutput, error)
|
||||
DeregisterTargetsRequest(*elbv2.DeregisterTargetsInput) (*request.Request, *elbv2.DeregisterTargetsOutput)
|
||||
|
||||
DescribeAccountLimits(*elbv2.DescribeAccountLimitsInput) (*elbv2.DescribeAccountLimitsOutput, error)
|
||||
DescribeAccountLimitsWithContext(aws.Context, *elbv2.DescribeAccountLimitsInput, ...request.Option) (*elbv2.DescribeAccountLimitsOutput, error)
|
||||
DescribeAccountLimitsRequest(*elbv2.DescribeAccountLimitsInput) (*request.Request, *elbv2.DescribeAccountLimitsOutput)
|
||||
|
||||
DescribeListeners(*elbv2.DescribeListenersInput) (*elbv2.DescribeListenersOutput, error)
|
||||
DescribeListenersWithContext(aws.Context, *elbv2.DescribeListenersInput, ...request.Option) (*elbv2.DescribeListenersOutput, error)
|
||||
DescribeListenersRequest(*elbv2.DescribeListenersInput) (*request.Request, *elbv2.DescribeListenersOutput)
|
||||
|
||||
22
vendor/github.com/aws/aws-sdk-go/service/elbv2/examples_test.go
generated
vendored
22
vendor/github.com/aws/aws-sdk-go/service/elbv2/examples_test.go
generated
vendored
@@ -306,6 +306,28 @@ func ExampleELBV2_DeregisterTargets() {
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleELBV2_DescribeAccountLimits() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := elbv2.New(sess)
|
||||
|
||||
params := &elbv2.DescribeAccountLimitsInput{
|
||||
Marker: aws.String("Marker"),
|
||||
PageSize: aws.Int64(1),
|
||||
}
|
||||
resp, err := svc.DescribeAccountLimits(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleELBV2_DescribeListeners() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
|
||||
682
vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/api.go
generated
vendored
682
vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/api.go
generated
vendored
@@ -387,9 +387,8 @@ func (c *LexModelBuildingService) DeleteBotRequest(input *DeleteBotInput) (req *
|
||||
|
||||
// DeleteBot API operation for Amazon Lex Model Building Service.
|
||||
//
|
||||
// Deletes a bot. If you specify a bot version in the request, the API deletes
|
||||
// only the specified bot version. If you don't specify a version, the API deletes
|
||||
// all versions of the bot, including the $LATEST version.
|
||||
// Deletes all versions of the bot, including the $LATEST version. To delete
|
||||
// a specific version of the bot, use the operation.
|
||||
//
|
||||
// If a bot has an alias, you can't delete it. Instead, the DeleteBot operation
|
||||
// returns a ResourceInUseException exception that includes a reference to the
|
||||
@@ -675,6 +674,118 @@ func (c *LexModelBuildingService) DeleteBotChannelAssociationWithContext(ctx aws
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDeleteBotVersion = "DeleteBotVersion"
|
||||
|
||||
// DeleteBotVersionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteBotVersion operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// See DeleteBotVersion for usage and error information.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteBotVersion method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteBotVersionRequest method.
|
||||
// req, resp := client.DeleteBotVersionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotVersion
|
||||
func (c *LexModelBuildingService) DeleteBotVersionRequest(input *DeleteBotVersionInput) (req *request.Request, output *DeleteBotVersionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteBotVersion,
|
||||
HTTPMethod: "DELETE",
|
||||
HTTPPath: "/bots/{name}/versions/{version}",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DeleteBotVersionInput{}
|
||||
}
|
||||
|
||||
output = &DeleteBotVersionOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||
return
|
||||
}
|
||||
|
||||
// DeleteBotVersion API operation for Amazon Lex Model Building Service.
|
||||
//
|
||||
// Deletes a specific version of a bot. To delete all versions of a bot, use
|
||||
// the operation.
|
||||
//
|
||||
// This operation requires permissions for the lex:DeleteBotVersion action.
|
||||
//
|
||||
// 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 Lex Model Building Service's
|
||||
// API operation DeleteBotVersion for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeNotFoundException "NotFoundException"
|
||||
// The resource specified in the request was not found. Check the resource and
|
||||
// try again.
|
||||
//
|
||||
// * ErrCodeConflictException "ConflictException"
|
||||
// There was a conflict processing the request. Try your request again.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// The request exceeded a limit. Try your request again.
|
||||
//
|
||||
// * ErrCodeInternalFailureException "InternalFailureException"
|
||||
// An internal Amazon Lex error occurred. Try your request again.
|
||||
//
|
||||
// * ErrCodeBadRequestException "BadRequestException"
|
||||
// The request is not well formed. For example, a value is invalid or a required
|
||||
// field is missing. Check the field values, and try again.
|
||||
//
|
||||
// * ErrCodeResourceInUseException "ResourceInUseException"
|
||||
// The resource that you are attempting to delete is referred to by another
|
||||
// resource. Use this information to remove references to the resource that
|
||||
// you are trying to delete.
|
||||
//
|
||||
// The body of the exception contains a JSON object that describes the resource.
|
||||
//
|
||||
// { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
|
||||
//
|
||||
// "resourceReference": {
|
||||
//
|
||||
// "name": string, "version": string } }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotVersion
|
||||
func (c *LexModelBuildingService) DeleteBotVersion(input *DeleteBotVersionInput) (*DeleteBotVersionOutput, error) {
|
||||
req, out := c.DeleteBotVersionRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DeleteBotVersionWithContext is the same as DeleteBotVersion with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DeleteBotVersion 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 *LexModelBuildingService) DeleteBotVersionWithContext(ctx aws.Context, input *DeleteBotVersionInput, opts ...request.Option) (*DeleteBotVersionOutput, error) {
|
||||
req, out := c.DeleteBotVersionRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDeleteIntent = "DeleteIntent"
|
||||
|
||||
// DeleteIntentRequest generates a "aws/request.Request" representing the
|
||||
@@ -722,10 +833,8 @@ func (c *LexModelBuildingService) DeleteIntentRequest(input *DeleteIntentInput)
|
||||
|
||||
// DeleteIntent API operation for Amazon Lex Model Building Service.
|
||||
//
|
||||
// Deletes an intent. If you specify a version in the request, the API deletes
|
||||
// only the specified version of the intent. If you don't specify a version
|
||||
// in the request, the API deletes all of the versions of the intent, including
|
||||
// the $LATEST version.
|
||||
// Deletes all versions of the intent, including the $LATEST version. To delete
|
||||
// a specific version of the intent, use the operation.
|
||||
//
|
||||
// You can delete a version of an intent only if it is not referenced. To delete
|
||||
// an intent that is referred to in one or more bots (see how-it-works), you
|
||||
@@ -799,6 +908,118 @@ func (c *LexModelBuildingService) DeleteIntentWithContext(ctx aws.Context, input
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDeleteIntentVersion = "DeleteIntentVersion"
|
||||
|
||||
// DeleteIntentVersionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteIntentVersion operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// See DeleteIntentVersion for usage and error information.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteIntentVersion method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteIntentVersionRequest method.
|
||||
// req, resp := client.DeleteIntentVersionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentVersion
|
||||
func (c *LexModelBuildingService) DeleteIntentVersionRequest(input *DeleteIntentVersionInput) (req *request.Request, output *DeleteIntentVersionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteIntentVersion,
|
||||
HTTPMethod: "DELETE",
|
||||
HTTPPath: "/intents/{name}/versions/{version}",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DeleteIntentVersionInput{}
|
||||
}
|
||||
|
||||
output = &DeleteIntentVersionOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||
return
|
||||
}
|
||||
|
||||
// DeleteIntentVersion API operation for Amazon Lex Model Building Service.
|
||||
//
|
||||
// Deletes a specific version of an intent. To delete all versions of a intent,
|
||||
// use the operation.
|
||||
//
|
||||
// This operation requires permissions for the lex:DeleteIntentVersion action.
|
||||
//
|
||||
// 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 Lex Model Building Service's
|
||||
// API operation DeleteIntentVersion for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeNotFoundException "NotFoundException"
|
||||
// The resource specified in the request was not found. Check the resource and
|
||||
// try again.
|
||||
//
|
||||
// * ErrCodeConflictException "ConflictException"
|
||||
// There was a conflict processing the request. Try your request again.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// The request exceeded a limit. Try your request again.
|
||||
//
|
||||
// * ErrCodeInternalFailureException "InternalFailureException"
|
||||
// An internal Amazon Lex error occurred. Try your request again.
|
||||
//
|
||||
// * ErrCodeBadRequestException "BadRequestException"
|
||||
// The request is not well formed. For example, a value is invalid or a required
|
||||
// field is missing. Check the field values, and try again.
|
||||
//
|
||||
// * ErrCodeResourceInUseException "ResourceInUseException"
|
||||
// The resource that you are attempting to delete is referred to by another
|
||||
// resource. Use this information to remove references to the resource that
|
||||
// you are trying to delete.
|
||||
//
|
||||
// The body of the exception contains a JSON object that describes the resource.
|
||||
//
|
||||
// { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
|
||||
//
|
||||
// "resourceReference": {
|
||||
//
|
||||
// "name": string, "version": string } }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentVersion
|
||||
func (c *LexModelBuildingService) DeleteIntentVersion(input *DeleteIntentVersionInput) (*DeleteIntentVersionOutput, error) {
|
||||
req, out := c.DeleteIntentVersionRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DeleteIntentVersionWithContext is the same as DeleteIntentVersion with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DeleteIntentVersion 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 *LexModelBuildingService) DeleteIntentVersionWithContext(ctx aws.Context, input *DeleteIntentVersionInput, opts ...request.Option) (*DeleteIntentVersionOutput, error) {
|
||||
req, out := c.DeleteIntentVersionRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDeleteSlotType = "DeleteSlotType"
|
||||
|
||||
// DeleteSlotTypeRequest generates a "aws/request.Request" representing the
|
||||
@@ -846,19 +1067,19 @@ func (c *LexModelBuildingService) DeleteSlotTypeRequest(input *DeleteSlotTypeInp
|
||||
|
||||
// DeleteSlotType API operation for Amazon Lex Model Building Service.
|
||||
//
|
||||
// Deletes a slot type. If you specify a version in the request, the API deletes
|
||||
// the specific version. If you don't specify a version in the request, the
|
||||
// API deletes all versions of the slot type, including the $LATEST version.
|
||||
// Deletes all versions of the slot type, including the $LATEST version. To
|
||||
// delete a specific version of the slot type, use the operation.
|
||||
//
|
||||
// You can delete a version of a slot type only if it is not referenced. To
|
||||
// delete a slot type that is referred to in one or more intents, you must remove
|
||||
// those references first.
|
||||
//
|
||||
// If you get the SlotTypeInUse exception, the exception provides an example
|
||||
// reference that shows the intent where the slot type is referenced. To remove
|
||||
// the reference to the slot type, either update the intent or delete it. If
|
||||
// you get the same exception when you attempt to delete the intent again, repeat
|
||||
// until the intent has no references and the DeleteSlotType call is successful.
|
||||
// If you get the ResourceInUseException exception, the exception provides an
|
||||
// example reference that shows the intent where the slot type is referenced.
|
||||
// To remove the reference to the slot type, either update the intent or delete
|
||||
// it. If you get the same exception when you attempt to delete the slot type
|
||||
// again, repeat until the slot type has no references and the DeleteSlotType
|
||||
// call is successful.
|
||||
//
|
||||
// This operation requires permission for the lex:DeleteSlotType action.
|
||||
//
|
||||
@@ -922,6 +1143,118 @@ func (c *LexModelBuildingService) DeleteSlotTypeWithContext(ctx aws.Context, inp
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDeleteSlotTypeVersion = "DeleteSlotTypeVersion"
|
||||
|
||||
// DeleteSlotTypeVersionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteSlotTypeVersion operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
//
|
||||
// See DeleteSlotTypeVersion for usage and error information.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteSlotTypeVersion method directly
|
||||
// instead.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteSlotTypeVersionRequest method.
|
||||
// req, resp := client.DeleteSlotTypeVersionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeVersion
|
||||
func (c *LexModelBuildingService) DeleteSlotTypeVersionRequest(input *DeleteSlotTypeVersionInput) (req *request.Request, output *DeleteSlotTypeVersionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteSlotTypeVersion,
|
||||
HTTPMethod: "DELETE",
|
||||
HTTPPath: "/slottypes/{name}/version/{version}",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DeleteSlotTypeVersionInput{}
|
||||
}
|
||||
|
||||
output = &DeleteSlotTypeVersionOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||
return
|
||||
}
|
||||
|
||||
// DeleteSlotTypeVersion API operation for Amazon Lex Model Building Service.
|
||||
//
|
||||
// Deletes a specific version of a slot type. To delete all versions of a slot
|
||||
// type, use the operation.
|
||||
//
|
||||
// This operation requires permissions for the lex:DeleteSlotTypeVersion action.
|
||||
//
|
||||
// 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 Lex Model Building Service's
|
||||
// API operation DeleteSlotTypeVersion for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeNotFoundException "NotFoundException"
|
||||
// The resource specified in the request was not found. Check the resource and
|
||||
// try again.
|
||||
//
|
||||
// * ErrCodeConflictException "ConflictException"
|
||||
// There was a conflict processing the request. Try your request again.
|
||||
//
|
||||
// * ErrCodeLimitExceededException "LimitExceededException"
|
||||
// The request exceeded a limit. Try your request again.
|
||||
//
|
||||
// * ErrCodeInternalFailureException "InternalFailureException"
|
||||
// An internal Amazon Lex error occurred. Try your request again.
|
||||
//
|
||||
// * ErrCodeBadRequestException "BadRequestException"
|
||||
// The request is not well formed. For example, a value is invalid or a required
|
||||
// field is missing. Check the field values, and try again.
|
||||
//
|
||||
// * ErrCodeResourceInUseException "ResourceInUseException"
|
||||
// The resource that you are attempting to delete is referred to by another
|
||||
// resource. Use this information to remove references to the resource that
|
||||
// you are trying to delete.
|
||||
//
|
||||
// The body of the exception contains a JSON object that describes the resource.
|
||||
//
|
||||
// { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,
|
||||
//
|
||||
// "resourceReference": {
|
||||
//
|
||||
// "name": string, "version": string } }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeVersion
|
||||
func (c *LexModelBuildingService) DeleteSlotTypeVersion(input *DeleteSlotTypeVersionInput) (*DeleteSlotTypeVersionOutput, error) {
|
||||
req, out := c.DeleteSlotTypeVersionRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DeleteSlotTypeVersionWithContext is the same as DeleteSlotTypeVersion with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DeleteSlotTypeVersion 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 *LexModelBuildingService) DeleteSlotTypeVersionWithContext(ctx aws.Context, input *DeleteSlotTypeVersionInput, opts ...request.Option) (*DeleteSlotTypeVersionOutput, error) {
|
||||
req, out := c.DeleteSlotTypeVersionRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDeleteUtterances = "DeleteUtterances"
|
||||
|
||||
// DeleteUtterancesRequest generates a "aws/request.Request" representing the
|
||||
@@ -971,9 +1304,13 @@ func (c *LexModelBuildingService) DeleteUtterancesRequest(input *DeleteUtterance
|
||||
//
|
||||
// Deletes stored utterances.
|
||||
//
|
||||
// When you create or update a bot using the operation, configure your bot to
|
||||
// store user utterances by setting privacySetting to STORE_UTTERANCES. Use
|
||||
// DeleteUtterances to remove the stored utterances for a specific user .
|
||||
// Amazon Lex stores the utterances that users send to your bot unless the childDirected
|
||||
// field in the bot is set to true. Utterances are stored for 15 days for use
|
||||
// with the operation, and then stored indefinately for use in improving the
|
||||
// ability of your bot to respond to user input.
|
||||
//
|
||||
// Use the DeleteStoredUtterances operation to manually delete stored utterances
|
||||
// for a specific user.
|
||||
//
|
||||
// This operation requires permissions for the lex:DeleteUtterances action.
|
||||
//
|
||||
@@ -1163,6 +1500,8 @@ func (c *LexModelBuildingService) GetBotAliasRequest(input *GetBotAliasInput) (r
|
||||
// Returns information about an Amazon Lex bot alias. For more information about
|
||||
// aliases, see versioning-aliases.
|
||||
//
|
||||
// This operation requires permissions for the lex:GetBotAlias action.
|
||||
//
|
||||
// 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.
|
||||
@@ -1260,6 +1599,8 @@ func (c *LexModelBuildingService) GetBotAliasesRequest(input *GetBotAliasesInput
|
||||
//
|
||||
// Returns a list of aliases for a specified Amazon Lex bot.
|
||||
//
|
||||
// This operation requires permissions for the lex:GetBotAliases action.
|
||||
//
|
||||
// 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.
|
||||
@@ -1398,6 +1739,9 @@ func (c *LexModelBuildingService) GetBotChannelAssociationRequest(input *GetBotC
|
||||
// Returns information about the association between an Amazon Lex bot and a
|
||||
// messaging platform.
|
||||
//
|
||||
// This operation requires permissions for the lex:GetBotChannelAssociation
|
||||
// action.
|
||||
//
|
||||
// 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.
|
||||
@@ -1495,6 +1839,9 @@ func (c *LexModelBuildingService) GetBotChannelAssociationsRequest(input *GetBot
|
||||
//
|
||||
// Returns a list of all of the channels associated with the specified bot.
|
||||
//
|
||||
// The GetBotChannelAssociations operation requires permissions for the lex:GetBotChannelAssociations
|
||||
// action.
|
||||
//
|
||||
// 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.
|
||||
@@ -1646,6 +1993,8 @@ func (c *LexModelBuildingService) GetBotVersionsRequest(input *GetBotVersionsInp
|
||||
// The GetBotVersions operation always returns at least one version, the $LATEST
|
||||
// version.
|
||||
//
|
||||
// This operation requires permissions for the lex:GetBotVersions action.
|
||||
//
|
||||
// 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.
|
||||
@@ -2437,6 +2786,8 @@ func (c *LexModelBuildingService) GetIntentVersionsRequest(input *GetIntentVersi
|
||||
// The GetIntentVersions operation always returns at least one version, the
|
||||
// $LATEST version.
|
||||
//
|
||||
// This operation requires permissions for the lex:GetIntentVersions action.
|
||||
//
|
||||
// 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.
|
||||
@@ -2841,6 +3192,8 @@ func (c *LexModelBuildingService) GetSlotTypeVersionsRequest(input *GetSlotTypeV
|
||||
// The GetSlotTypeVersions operation always returns at least one version, the
|
||||
// $LATEST version.
|
||||
//
|
||||
// This operation requires permissions for the lex:GetSlotTypeVersions action.
|
||||
//
|
||||
// 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.
|
||||
@@ -3150,8 +3503,15 @@ func (c *LexModelBuildingService) GetUtterancesViewRequest(input *GetUtterancesV
|
||||
// old version and the new so that you can compare the performance across the
|
||||
// two versions.
|
||||
//
|
||||
// You can request information for up to 5 versions in each request. The response
|
||||
// contains information about a maximum of 100 utterances for each version.
|
||||
// Data is available for the last 15 days. You can request information for up
|
||||
// to 5 versions in each request. The response contains information about a
|
||||
// maximum of 100 utterances for each version.
|
||||
//
|
||||
// If the bot's childDirected field is set to true, utterances for the bot are
|
||||
// not stored and cannot be retrieved with the GetUtterancesView operation.
|
||||
// For more information, see .
|
||||
//
|
||||
// This operation requires permissions for the lex:GetUtterancesView action.
|
||||
//
|
||||
// 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
|
||||
@@ -3239,10 +3599,10 @@ func (c *LexModelBuildingService) PutBotRequest(input *PutBotInput) (req *reques
|
||||
// PutBot API operation for Amazon Lex Model Building Service.
|
||||
//
|
||||
// Creates an Amazon Lex conversational bot or replaces an existing bot. When
|
||||
// you create or update an intent you only required to specify a name. You can
|
||||
// use this to add intents later, or to remove intents from an existing bot.
|
||||
// When you create a bot with a name only, the bot is created or updated but
|
||||
// Amazon Lex returns the response FAILED. You can build the bot after you add one or more intents. For more information
|
||||
// you create or update a bot you only required to specify a name. You can use
|
||||
// this to add intents later, or to remove intents from an existing bot. When
|
||||
// you create a bot with a name only, the bot is created or updated but Amazon
|
||||
// Lex returns the response FAILED. You can build the bot after you add one or more intents. For more information
|
||||
// about Amazon Lex bots, see how-it-works.
|
||||
//
|
||||
// If you specify the name of an existing bot, the fields in the request replace
|
||||
@@ -3485,8 +3845,7 @@ func (c *LexModelBuildingService) PutIntentRequest(input *PutIntentInput) (req *
|
||||
//
|
||||
// For more information, see how-it-works.
|
||||
//
|
||||
// This operation requires permissions for the lex:PutIntent action. For more
|
||||
// information, see auth-and-access-control.
|
||||
// This operation requires permissions for the lex:PutIntent action.
|
||||
//
|
||||
// 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
|
||||
@@ -4100,7 +4459,7 @@ type CreateBotVersionOutput struct {
|
||||
// see .
|
||||
AbortStatement *Statement `locationName:"abortStatement" type:"structure"`
|
||||
|
||||
// Checksum identifying the version of the boat that was created.
|
||||
// Checksum identifying the version of the bot that was created.
|
||||
Checksum *string `locationName:"checksum" type:"string"`
|
||||
|
||||
// For each Amazon Lex bot created with the Amazon Lex Model Building Service,
|
||||
@@ -4793,9 +5152,6 @@ type DeleteBotInput struct {
|
||||
//
|
||||
// Name is a required field
|
||||
Name *string `location:"uri" locationName:"name" min:"2" type:"string" required:"true"`
|
||||
|
||||
// The version of the bot.
|
||||
Version *string `locationName:"version" min:"1" type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
@@ -4817,9 +5173,6 @@ func (s *DeleteBotInput) Validate() error {
|
||||
if s.Name != nil && len(*s.Name) < 2 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Name", 2))
|
||||
}
|
||||
if s.Version != nil && len(*s.Version) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Version", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
@@ -4833,12 +5186,6 @@ func (s *DeleteBotInput) SetName(v string) *DeleteBotInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetVersion sets the Version field's value.
|
||||
func (s *DeleteBotInput) SetVersion(v string) *DeleteBotInput {
|
||||
s.Version = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotOutput
|
||||
type DeleteBotOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -4854,6 +5201,81 @@ func (s DeleteBotOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotVersionRequest
|
||||
type DeleteBotVersionInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The name of the bot.
|
||||
//
|
||||
// Name is a required field
|
||||
Name *string `location:"uri" locationName:"name" min:"2" type:"string" required:"true"`
|
||||
|
||||
// The version of the bot to delete. You cannot delete the $LATEST version of
|
||||
// the bot. To delete the $LATEST version, use the operation.
|
||||
//
|
||||
// Version is a required field
|
||||
Version *string `location:"uri" locationName:"version" min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DeleteBotVersionInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DeleteBotVersionInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *DeleteBotVersionInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "DeleteBotVersionInput"}
|
||||
if s.Name == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Name"))
|
||||
}
|
||||
if s.Name != nil && len(*s.Name) < 2 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Name", 2))
|
||||
}
|
||||
if s.Version == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Version"))
|
||||
}
|
||||
if s.Version != nil && len(*s.Version) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Version", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetName sets the Name field's value.
|
||||
func (s *DeleteBotVersionInput) SetName(v string) *DeleteBotVersionInput {
|
||||
s.Name = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetVersion sets the Version field's value.
|
||||
func (s *DeleteBotVersionInput) SetVersion(v string) *DeleteBotVersionInput {
|
||||
s.Version = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteBotVersionOutput
|
||||
type DeleteBotVersionOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DeleteBotVersionOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DeleteBotVersionOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentRequest
|
||||
type DeleteIntentInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -4862,9 +5284,6 @@ type DeleteIntentInput struct {
|
||||
//
|
||||
// Name is a required field
|
||||
Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
|
||||
|
||||
// The version of the intent.
|
||||
Version *string `locationName:"version" min:"1" type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
@@ -4886,9 +5305,6 @@ func (s *DeleteIntentInput) Validate() error {
|
||||
if s.Name != nil && len(*s.Name) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
|
||||
}
|
||||
if s.Version != nil && len(*s.Version) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Version", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
@@ -4902,12 +5318,6 @@ func (s *DeleteIntentInput) SetName(v string) *DeleteIntentInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetVersion sets the Version field's value.
|
||||
func (s *DeleteIntentInput) SetVersion(v string) *DeleteIntentInput {
|
||||
s.Version = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentOutput
|
||||
type DeleteIntentOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -4923,6 +5333,81 @@ func (s DeleteIntentOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentVersionRequest
|
||||
type DeleteIntentVersionInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The name of the intent.
|
||||
//
|
||||
// Name is a required field
|
||||
Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
|
||||
|
||||
// The version of the intent to delete. You cannot delete the $LATEST version
|
||||
// of the intent. To delete the $LATEST version, use the operation.
|
||||
//
|
||||
// Version is a required field
|
||||
Version *string `location:"uri" locationName:"version" min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DeleteIntentVersionInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DeleteIntentVersionInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *DeleteIntentVersionInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "DeleteIntentVersionInput"}
|
||||
if s.Name == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Name"))
|
||||
}
|
||||
if s.Name != nil && len(*s.Name) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
|
||||
}
|
||||
if s.Version == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Version"))
|
||||
}
|
||||
if s.Version != nil && len(*s.Version) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Version", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetName sets the Name field's value.
|
||||
func (s *DeleteIntentVersionInput) SetName(v string) *DeleteIntentVersionInput {
|
||||
s.Name = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetVersion sets the Version field's value.
|
||||
func (s *DeleteIntentVersionInput) SetVersion(v string) *DeleteIntentVersionInput {
|
||||
s.Version = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteIntentVersionOutput
|
||||
type DeleteIntentVersionOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DeleteIntentVersionOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DeleteIntentVersionOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeRequest
|
||||
type DeleteSlotTypeInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -4931,9 +5416,6 @@ type DeleteSlotTypeInput struct {
|
||||
//
|
||||
// Name is a required field
|
||||
Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
|
||||
|
||||
// The version of the slot type.
|
||||
Version *string `locationName:"version" min:"1" type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
@@ -4955,9 +5437,6 @@ func (s *DeleteSlotTypeInput) Validate() error {
|
||||
if s.Name != nil && len(*s.Name) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
|
||||
}
|
||||
if s.Version != nil && len(*s.Version) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Version", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
@@ -4971,12 +5450,6 @@ func (s *DeleteSlotTypeInput) SetName(v string) *DeleteSlotTypeInput {
|
||||
return s
|
||||
}
|
||||
|
||||
// SetVersion sets the Version field's value.
|
||||
func (s *DeleteSlotTypeInput) SetVersion(v string) *DeleteSlotTypeInput {
|
||||
s.Version = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeOutput
|
||||
type DeleteSlotTypeOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -4992,6 +5465,81 @@ func (s DeleteSlotTypeOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeVersionRequest
|
||||
type DeleteSlotTypeVersionInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The name of the slot type.
|
||||
//
|
||||
// Name is a required field
|
||||
Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"`
|
||||
|
||||
// The version of the slot type to delete. You cannot delete the $LATEST version
|
||||
// of the slot type. To delete the $LATEST version, use the operation.
|
||||
//
|
||||
// Version is a required field
|
||||
Version *string `location:"uri" locationName:"version" min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DeleteSlotTypeVersionInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DeleteSlotTypeVersionInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *DeleteSlotTypeVersionInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "DeleteSlotTypeVersionInput"}
|
||||
if s.Name == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Name"))
|
||||
}
|
||||
if s.Name != nil && len(*s.Name) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Name", 1))
|
||||
}
|
||||
if s.Version == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Version"))
|
||||
}
|
||||
if s.Version != nil && len(*s.Version) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Version", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetName sets the Name field's value.
|
||||
func (s *DeleteSlotTypeVersionInput) SetName(v string) *DeleteSlotTypeVersionInput {
|
||||
s.Name = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetVersion sets the Version field's value.
|
||||
func (s *DeleteSlotTypeVersionInput) SetVersion(v string) *DeleteSlotTypeVersionInput {
|
||||
s.Version = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteSlotTypeVersionOutput
|
||||
type DeleteSlotTypeVersionOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DeleteSlotTypeVersionOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DeleteSlotTypeVersionOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/DeleteUtterancesRequest
|
||||
type DeleteUtterancesInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@@ -8928,12 +9476,12 @@ type Slot struct {
|
||||
// Name is a required field
|
||||
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
|
||||
|
||||
// Specifies the order in which to elicit slot values from the user. For example,
|
||||
// if the intent has two slots with priorities 1 and 2, AWS Amazon Lex first
|
||||
// Directs Lex the order in which to elicit this slot value from the user. For
|
||||
// example, if the intent has two slots with priorities 1 and 2, AWS Lex first
|
||||
// elicits a value for the slot with priority 1.
|
||||
//
|
||||
// If multiple slots share the same priority, the order in which Amazon Lex
|
||||
// elicits values is arbitrary.
|
||||
// If multiple slots share the same priority, the order in which Lex elicits
|
||||
// values is arbitrary.
|
||||
Priority *int64 `locationName:"priority" type:"integer"`
|
||||
|
||||
// A set of possible responses for the slot type used by text-based clients.
|
||||
|
||||
75
vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/examples_test.go
generated
vendored
75
vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/examples_test.go
generated
vendored
@@ -87,8 +87,7 @@ func ExampleLexModelBuildingService_DeleteBot() {
|
||||
svc := lexmodelbuildingservice.New(sess)
|
||||
|
||||
params := &lexmodelbuildingservice.DeleteBotInput{
|
||||
Name: aws.String("BotName"), // Required
|
||||
Version: aws.String("Version"),
|
||||
Name: aws.String("BotName"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteBot(params)
|
||||
|
||||
@@ -148,14 +147,35 @@ func ExampleLexModelBuildingService_DeleteBotChannelAssociation() {
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleLexModelBuildingService_DeleteBotVersion() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := lexmodelbuildingservice.New(sess)
|
||||
|
||||
params := &lexmodelbuildingservice.DeleteBotVersionInput{
|
||||
Name: aws.String("BotName"), // Required
|
||||
Version: aws.String("NumericalVersion"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteBotVersion(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleLexModelBuildingService_DeleteIntent() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := lexmodelbuildingservice.New(sess)
|
||||
|
||||
params := &lexmodelbuildingservice.DeleteIntentInput{
|
||||
Name: aws.String("IntentName"), // Required
|
||||
Version: aws.String("Version"),
|
||||
Name: aws.String("IntentName"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteIntent(params)
|
||||
|
||||
@@ -170,14 +190,35 @@ func ExampleLexModelBuildingService_DeleteIntent() {
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleLexModelBuildingService_DeleteIntentVersion() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := lexmodelbuildingservice.New(sess)
|
||||
|
||||
params := &lexmodelbuildingservice.DeleteIntentVersionInput{
|
||||
Name: aws.String("IntentName"), // Required
|
||||
Version: aws.String("NumericalVersion"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteIntentVersion(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleLexModelBuildingService_DeleteSlotType() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := lexmodelbuildingservice.New(sess)
|
||||
|
||||
params := &lexmodelbuildingservice.DeleteSlotTypeInput{
|
||||
Name: aws.String("SlotTypeName"), // Required
|
||||
Version: aws.String("Version"),
|
||||
Name: aws.String("SlotTypeName"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteSlotType(params)
|
||||
|
||||
@@ -192,6 +233,28 @@ func ExampleLexModelBuildingService_DeleteSlotType() {
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleLexModelBuildingService_DeleteSlotTypeVersion() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := lexmodelbuildingservice.New(sess)
|
||||
|
||||
params := &lexmodelbuildingservice.DeleteSlotTypeVersionInput{
|
||||
Name: aws.String("SlotTypeName"), // Required
|
||||
Version: aws.String("NumericalVersion"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteSlotTypeVersion(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleLexModelBuildingService_DeleteUtterances() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
|
||||
@@ -84,14 +84,26 @@ type LexModelBuildingServiceAPI interface {
|
||||
DeleteBotChannelAssociationWithContext(aws.Context, *lexmodelbuildingservice.DeleteBotChannelAssociationInput, ...request.Option) (*lexmodelbuildingservice.DeleteBotChannelAssociationOutput, error)
|
||||
DeleteBotChannelAssociationRequest(*lexmodelbuildingservice.DeleteBotChannelAssociationInput) (*request.Request, *lexmodelbuildingservice.DeleteBotChannelAssociationOutput)
|
||||
|
||||
DeleteBotVersion(*lexmodelbuildingservice.DeleteBotVersionInput) (*lexmodelbuildingservice.DeleteBotVersionOutput, error)
|
||||
DeleteBotVersionWithContext(aws.Context, *lexmodelbuildingservice.DeleteBotVersionInput, ...request.Option) (*lexmodelbuildingservice.DeleteBotVersionOutput, error)
|
||||
DeleteBotVersionRequest(*lexmodelbuildingservice.DeleteBotVersionInput) (*request.Request, *lexmodelbuildingservice.DeleteBotVersionOutput)
|
||||
|
||||
DeleteIntent(*lexmodelbuildingservice.DeleteIntentInput) (*lexmodelbuildingservice.DeleteIntentOutput, error)
|
||||
DeleteIntentWithContext(aws.Context, *lexmodelbuildingservice.DeleteIntentInput, ...request.Option) (*lexmodelbuildingservice.DeleteIntentOutput, error)
|
||||
DeleteIntentRequest(*lexmodelbuildingservice.DeleteIntentInput) (*request.Request, *lexmodelbuildingservice.DeleteIntentOutput)
|
||||
|
||||
DeleteIntentVersion(*lexmodelbuildingservice.DeleteIntentVersionInput) (*lexmodelbuildingservice.DeleteIntentVersionOutput, error)
|
||||
DeleteIntentVersionWithContext(aws.Context, *lexmodelbuildingservice.DeleteIntentVersionInput, ...request.Option) (*lexmodelbuildingservice.DeleteIntentVersionOutput, error)
|
||||
DeleteIntentVersionRequest(*lexmodelbuildingservice.DeleteIntentVersionInput) (*request.Request, *lexmodelbuildingservice.DeleteIntentVersionOutput)
|
||||
|
||||
DeleteSlotType(*lexmodelbuildingservice.DeleteSlotTypeInput) (*lexmodelbuildingservice.DeleteSlotTypeOutput, error)
|
||||
DeleteSlotTypeWithContext(aws.Context, *lexmodelbuildingservice.DeleteSlotTypeInput, ...request.Option) (*lexmodelbuildingservice.DeleteSlotTypeOutput, error)
|
||||
DeleteSlotTypeRequest(*lexmodelbuildingservice.DeleteSlotTypeInput) (*request.Request, *lexmodelbuildingservice.DeleteSlotTypeOutput)
|
||||
|
||||
DeleteSlotTypeVersion(*lexmodelbuildingservice.DeleteSlotTypeVersionInput) (*lexmodelbuildingservice.DeleteSlotTypeVersionOutput, error)
|
||||
DeleteSlotTypeVersionWithContext(aws.Context, *lexmodelbuildingservice.DeleteSlotTypeVersionInput, ...request.Option) (*lexmodelbuildingservice.DeleteSlotTypeVersionOutput, error)
|
||||
DeleteSlotTypeVersionRequest(*lexmodelbuildingservice.DeleteSlotTypeVersionInput) (*request.Request, *lexmodelbuildingservice.DeleteSlotTypeVersionOutput)
|
||||
|
||||
DeleteUtterances(*lexmodelbuildingservice.DeleteUtterancesInput) (*lexmodelbuildingservice.DeleteUtterancesOutput, error)
|
||||
DeleteUtterancesWithContext(aws.Context, *lexmodelbuildingservice.DeleteUtterancesInput, ...request.Option) (*lexmodelbuildingservice.DeleteUtterancesOutput, error)
|
||||
DeleteUtterancesRequest(*lexmodelbuildingservice.DeleteUtterancesInput) (*request.Request, *lexmodelbuildingservice.DeleteUtterancesOutput)
|
||||
|
||||
3209
vendor/github.com/aws/aws-sdk-go/service/organizations/api.go
generated
vendored
3209
vendor/github.com/aws/aws-sdk-go/service/organizations/api.go
generated
vendored
File diff suppressed because it is too large
Load Diff
128
vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go
generated
vendored
128
vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go
generated
vendored
@@ -56,7 +56,53 @@ const (
|
||||
// Performing this operation violates a minimum or maximum value limit. For
|
||||
// example, attempting to removing the last SCP from an OU or root, inviting
|
||||
// or creating too many accounts to the organization, or attaching too many
|
||||
// policies to an account, OU, or root.
|
||||
// policies to an account, OU, or root. This exception includes a reason that
|
||||
// contains additional information about the violated limit:
|
||||
//
|
||||
// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number
|
||||
// of accounts in an organization. Note: deleted and closed accounts still count
|
||||
// toward your limit.
|
||||
//
|
||||
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
|
||||
// handshakes you can send in one day.
|
||||
//
|
||||
// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational
|
||||
// units you can have in an organization.
|
||||
//
|
||||
// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit
|
||||
// tree that is too many levels deep.
|
||||
//
|
||||
// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of
|
||||
// policies that you can have in an organization.
|
||||
//
|
||||
// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the
|
||||
// number of policies of a certain type that can be attached to an entity
|
||||
// at one time.
|
||||
//
|
||||
// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a
|
||||
// policy from an entity that would cause the entity to have fewer than the
|
||||
// minimum number of policies of a certain type required.
|
||||
//
|
||||
// * ACCOUNT_CANNOT_LEAVE_ORGANIZATION: You attempted to remove an account
|
||||
// from an organization that was created from within organizations.
|
||||
//
|
||||
// * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization
|
||||
// with this account, you first must associate a payment instrument, such
|
||||
// as a credit card, with the account.
|
||||
//
|
||||
// * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation
|
||||
// with this member account, you first must associate a payment instrument,
|
||||
// such as a credit card, with the account.
|
||||
//
|
||||
// * ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number
|
||||
// of accounts that you can create in one day.
|
||||
//
|
||||
// * MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account
|
||||
// in this organization, you first must migrate the organization's master
|
||||
// account to the marketplace that corresponds to the master account's address.
|
||||
// For example, accounts with India addresses must be associated with the
|
||||
// AISPL marketplace. All accounts in an organization must be associated
|
||||
// with the same marketplace.
|
||||
ErrCodeConstraintViolationException = "ConstraintViolationException"
|
||||
|
||||
// ErrCodeCreateAccountStatusNotFoundException for service response error code
|
||||
@@ -126,6 +172,37 @@ const (
|
||||
//
|
||||
// The requested operation would violate the constraint identified in the reason
|
||||
// code.
|
||||
//
|
||||
// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on
|
||||
// the number of accounts in an organization. Note: deleted and closed accounts
|
||||
// still count toward your limit.
|
||||
//
|
||||
// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of
|
||||
// handshakes you can send in one day.
|
||||
//
|
||||
// * ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because
|
||||
// the invited account is already a member of an organization.
|
||||
//
|
||||
// * ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid
|
||||
// because the organization has already enabled all features.
|
||||
//
|
||||
// * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You cannot issue new invitations
|
||||
// to join an organization while it is in the process of enabling all features.
|
||||
// You can resume inviting accounts after you finalize the process when all
|
||||
// accounts have agreed to the change.
|
||||
//
|
||||
// * PAYMENT_INSTRUMENT_REQUIRED: You cannot complete the operation with
|
||||
// an account that does not have a payment instrument, such as a credit card,
|
||||
// associated with it.
|
||||
//
|
||||
// * ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because
|
||||
// the account is from a different marketplace than the accounts in the organization.
|
||||
// For example, accounts with India addresses must be associated with the
|
||||
// AISPL marketplace. All accounts in an organization must be from the same
|
||||
// marketplace.
|
||||
//
|
||||
// * ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to
|
||||
// change the membership of an account too quickly after its previous change.
|
||||
ErrCodeHandshakeConstraintViolationException = "HandshakeConstraintViolationException"
|
||||
|
||||
// ErrCodeHandshakeNotFoundException for service response error code
|
||||
@@ -145,7 +222,54 @@ const (
|
||||
// ErrCodeInvalidInputException for service response error code
|
||||
// "InvalidInputException".
|
||||
//
|
||||
// You provided invalid values for one or more of the request parameters.
|
||||
// The requested operation failed because you provided invalid values for one
|
||||
// or more of the request parameters. This exception includes a reason that
|
||||
// contains additional information about the violated limit:
|
||||
//
|
||||
// * INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account,
|
||||
// organization, or email) as a party.
|
||||
//
|
||||
// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the
|
||||
// organization.
|
||||
//
|
||||
// * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
|
||||
//
|
||||
// * INVALID_ENUM: You specified a value that is not valid for that parameter.
|
||||
//
|
||||
// * INVALID_LIST_MEMBER: You provided a list to a parameter that contains
|
||||
// at least one invalid value.
|
||||
//
|
||||
// * MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer
|
||||
// than allowed.
|
||||
//
|
||||
// * MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger
|
||||
// value than allowed.
|
||||
//
|
||||
// * MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter
|
||||
// than allowed.
|
||||
//
|
||||
// * MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller
|
||||
// value than allowed.
|
||||
//
|
||||
// * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and
|
||||
// cannot be modified.
|
||||
//
|
||||
// * INVALID_PATTERN: You provided a value that doesn't match the required
|
||||
// pattern.
|
||||
//
|
||||
// * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't
|
||||
// match the required pattern.
|
||||
//
|
||||
// * INPUT_REQUIRED: You must include a value for all required parameters.
|
||||
//
|
||||
// * INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter
|
||||
// from the response to a previous call of the operation.
|
||||
//
|
||||
// * MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter
|
||||
// for the operation.
|
||||
//
|
||||
// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only
|
||||
// between entities in the same root.
|
||||
ErrCodeInvalidInputException = "InvalidInputException"
|
||||
|
||||
// ErrCodeMalformedPolicyDocumentException for service response error code
|
||||
|
||||
36
vendor/github.com/aws/aws-sdk-go/service/organizations/organizationsiface/interface.go
generated
vendored
36
vendor/github.com/aws/aws-sdk-go/service/organizations/organizationsiface/interface.go
generated
vendored
@@ -156,50 +156,86 @@ type OrganizationsAPI interface {
|
||||
ListAccountsWithContext(aws.Context, *organizations.ListAccountsInput, ...request.Option) (*organizations.ListAccountsOutput, error)
|
||||
ListAccountsRequest(*organizations.ListAccountsInput) (*request.Request, *organizations.ListAccountsOutput)
|
||||
|
||||
ListAccountsPages(*organizations.ListAccountsInput, func(*organizations.ListAccountsOutput, bool) bool) error
|
||||
ListAccountsPagesWithContext(aws.Context, *organizations.ListAccountsInput, func(*organizations.ListAccountsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListAccountsForParent(*organizations.ListAccountsForParentInput) (*organizations.ListAccountsForParentOutput, error)
|
||||
ListAccountsForParentWithContext(aws.Context, *organizations.ListAccountsForParentInput, ...request.Option) (*organizations.ListAccountsForParentOutput, error)
|
||||
ListAccountsForParentRequest(*organizations.ListAccountsForParentInput) (*request.Request, *organizations.ListAccountsForParentOutput)
|
||||
|
||||
ListAccountsForParentPages(*organizations.ListAccountsForParentInput, func(*organizations.ListAccountsForParentOutput, bool) bool) error
|
||||
ListAccountsForParentPagesWithContext(aws.Context, *organizations.ListAccountsForParentInput, func(*organizations.ListAccountsForParentOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListChildren(*organizations.ListChildrenInput) (*organizations.ListChildrenOutput, error)
|
||||
ListChildrenWithContext(aws.Context, *organizations.ListChildrenInput, ...request.Option) (*organizations.ListChildrenOutput, error)
|
||||
ListChildrenRequest(*organizations.ListChildrenInput) (*request.Request, *organizations.ListChildrenOutput)
|
||||
|
||||
ListChildrenPages(*organizations.ListChildrenInput, func(*organizations.ListChildrenOutput, bool) bool) error
|
||||
ListChildrenPagesWithContext(aws.Context, *organizations.ListChildrenInput, func(*organizations.ListChildrenOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListCreateAccountStatus(*organizations.ListCreateAccountStatusInput) (*organizations.ListCreateAccountStatusOutput, error)
|
||||
ListCreateAccountStatusWithContext(aws.Context, *organizations.ListCreateAccountStatusInput, ...request.Option) (*organizations.ListCreateAccountStatusOutput, error)
|
||||
ListCreateAccountStatusRequest(*organizations.ListCreateAccountStatusInput) (*request.Request, *organizations.ListCreateAccountStatusOutput)
|
||||
|
||||
ListCreateAccountStatusPages(*organizations.ListCreateAccountStatusInput, func(*organizations.ListCreateAccountStatusOutput, bool) bool) error
|
||||
ListCreateAccountStatusPagesWithContext(aws.Context, *organizations.ListCreateAccountStatusInput, func(*organizations.ListCreateAccountStatusOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListHandshakesForAccount(*organizations.ListHandshakesForAccountInput) (*organizations.ListHandshakesForAccountOutput, error)
|
||||
ListHandshakesForAccountWithContext(aws.Context, *organizations.ListHandshakesForAccountInput, ...request.Option) (*organizations.ListHandshakesForAccountOutput, error)
|
||||
ListHandshakesForAccountRequest(*organizations.ListHandshakesForAccountInput) (*request.Request, *organizations.ListHandshakesForAccountOutput)
|
||||
|
||||
ListHandshakesForAccountPages(*organizations.ListHandshakesForAccountInput, func(*organizations.ListHandshakesForAccountOutput, bool) bool) error
|
||||
ListHandshakesForAccountPagesWithContext(aws.Context, *organizations.ListHandshakesForAccountInput, func(*organizations.ListHandshakesForAccountOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListHandshakesForOrganization(*organizations.ListHandshakesForOrganizationInput) (*organizations.ListHandshakesForOrganizationOutput, error)
|
||||
ListHandshakesForOrganizationWithContext(aws.Context, *organizations.ListHandshakesForOrganizationInput, ...request.Option) (*organizations.ListHandshakesForOrganizationOutput, error)
|
||||
ListHandshakesForOrganizationRequest(*organizations.ListHandshakesForOrganizationInput) (*request.Request, *organizations.ListHandshakesForOrganizationOutput)
|
||||
|
||||
ListHandshakesForOrganizationPages(*organizations.ListHandshakesForOrganizationInput, func(*organizations.ListHandshakesForOrganizationOutput, bool) bool) error
|
||||
ListHandshakesForOrganizationPagesWithContext(aws.Context, *organizations.ListHandshakesForOrganizationInput, func(*organizations.ListHandshakesForOrganizationOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListOrganizationalUnitsForParent(*organizations.ListOrganizationalUnitsForParentInput) (*organizations.ListOrganizationalUnitsForParentOutput, error)
|
||||
ListOrganizationalUnitsForParentWithContext(aws.Context, *organizations.ListOrganizationalUnitsForParentInput, ...request.Option) (*organizations.ListOrganizationalUnitsForParentOutput, error)
|
||||
ListOrganizationalUnitsForParentRequest(*organizations.ListOrganizationalUnitsForParentInput) (*request.Request, *organizations.ListOrganizationalUnitsForParentOutput)
|
||||
|
||||
ListOrganizationalUnitsForParentPages(*organizations.ListOrganizationalUnitsForParentInput, func(*organizations.ListOrganizationalUnitsForParentOutput, bool) bool) error
|
||||
ListOrganizationalUnitsForParentPagesWithContext(aws.Context, *organizations.ListOrganizationalUnitsForParentInput, func(*organizations.ListOrganizationalUnitsForParentOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListParents(*organizations.ListParentsInput) (*organizations.ListParentsOutput, error)
|
||||
ListParentsWithContext(aws.Context, *organizations.ListParentsInput, ...request.Option) (*organizations.ListParentsOutput, error)
|
||||
ListParentsRequest(*organizations.ListParentsInput) (*request.Request, *organizations.ListParentsOutput)
|
||||
|
||||
ListParentsPages(*organizations.ListParentsInput, func(*organizations.ListParentsOutput, bool) bool) error
|
||||
ListParentsPagesWithContext(aws.Context, *organizations.ListParentsInput, func(*organizations.ListParentsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListPolicies(*organizations.ListPoliciesInput) (*organizations.ListPoliciesOutput, error)
|
||||
ListPoliciesWithContext(aws.Context, *organizations.ListPoliciesInput, ...request.Option) (*organizations.ListPoliciesOutput, error)
|
||||
ListPoliciesRequest(*organizations.ListPoliciesInput) (*request.Request, *organizations.ListPoliciesOutput)
|
||||
|
||||
ListPoliciesPages(*organizations.ListPoliciesInput, func(*organizations.ListPoliciesOutput, bool) bool) error
|
||||
ListPoliciesPagesWithContext(aws.Context, *organizations.ListPoliciesInput, func(*organizations.ListPoliciesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListPoliciesForTarget(*organizations.ListPoliciesForTargetInput) (*organizations.ListPoliciesForTargetOutput, error)
|
||||
ListPoliciesForTargetWithContext(aws.Context, *organizations.ListPoliciesForTargetInput, ...request.Option) (*organizations.ListPoliciesForTargetOutput, error)
|
||||
ListPoliciesForTargetRequest(*organizations.ListPoliciesForTargetInput) (*request.Request, *organizations.ListPoliciesForTargetOutput)
|
||||
|
||||
ListPoliciesForTargetPages(*organizations.ListPoliciesForTargetInput, func(*organizations.ListPoliciesForTargetOutput, bool) bool) error
|
||||
ListPoliciesForTargetPagesWithContext(aws.Context, *organizations.ListPoliciesForTargetInput, func(*organizations.ListPoliciesForTargetOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListRoots(*organizations.ListRootsInput) (*organizations.ListRootsOutput, error)
|
||||
ListRootsWithContext(aws.Context, *organizations.ListRootsInput, ...request.Option) (*organizations.ListRootsOutput, error)
|
||||
ListRootsRequest(*organizations.ListRootsInput) (*request.Request, *organizations.ListRootsOutput)
|
||||
|
||||
ListRootsPages(*organizations.ListRootsInput, func(*organizations.ListRootsOutput, bool) bool) error
|
||||
ListRootsPagesWithContext(aws.Context, *organizations.ListRootsInput, func(*organizations.ListRootsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
ListTargetsForPolicy(*organizations.ListTargetsForPolicyInput) (*organizations.ListTargetsForPolicyOutput, error)
|
||||
ListTargetsForPolicyWithContext(aws.Context, *organizations.ListTargetsForPolicyInput, ...request.Option) (*organizations.ListTargetsForPolicyOutput, error)
|
||||
ListTargetsForPolicyRequest(*organizations.ListTargetsForPolicyInput) (*request.Request, *organizations.ListTargetsForPolicyOutput)
|
||||
|
||||
ListTargetsForPolicyPages(*organizations.ListTargetsForPolicyInput, func(*organizations.ListTargetsForPolicyOutput, bool) bool) error
|
||||
ListTargetsForPolicyPagesWithContext(aws.Context, *organizations.ListTargetsForPolicyInput, func(*organizations.ListTargetsForPolicyOutput, bool) bool, ...request.Option) error
|
||||
|
||||
MoveAccount(*organizations.MoveAccountInput) (*organizations.MoveAccountOutput, error)
|
||||
MoveAccountWithContext(aws.Context, *organizations.MoveAccountInput, ...request.Option) (*organizations.MoveAccountOutput, error)
|
||||
MoveAccountRequest(*organizations.MoveAccountInput) (*request.Request, *organizations.MoveAccountOutput)
|
||||
|
||||
Reference in New Issue
Block a user