summaryrefslogtreecommitdiff
path: root/vendor/github.com
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2018-09-24 23:41:42 -0400
committerGitHub <noreply@github.com>2018-09-24 23:41:42 -0400
commit04e7f2a7e51b8c7993ce6b0edb94c3fae5249a67 (patch)
tree65cd7632194be2b353047825b2d8213afca3a871 /vendor/github.com
parent6522752b1b2cfaf3e19e3a991c688baf25a8c64f (diff)
parent96c45388d8b51c4eaacb169595de70d2f390294b (diff)
Merge pull request #406 from hairyhenderson/update-vendor
Update vendor tree
Diffstat (limited to 'vendor/github.com')
-rw-r--r--vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go7
-rw-r--r--vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go6
-rw-r--r--vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go1
-rw-r--r--vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go78
-rw-r--r--vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go48
-rw-r--r--vendor/github.com/aws/aws-sdk-go/aws/version.go2
-rw-r--r--vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal.go12
-rw-r--r--vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go13
-rw-r--r--vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go20
-rw-r--r--vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go6
-rw-r--r--vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go14
-rw-r--r--vendor/github.com/aws/aws-sdk-go/service/ec2/api.go390
-rw-r--r--vendor/github.com/aws/aws-sdk-go/service/ssm/api.go1224
-rw-r--r--vendor/github.com/aws/aws-sdk-go/service/ssm/errors.go9
-rw-r--r--vendor/github.com/hashicorp/consul/api/agent.go8
-rw-r--r--vendor/github.com/hashicorp/consul/api/catalog.go6
-rw-r--r--vendor/github.com/hashicorp/consul/api/operator_area.go3
-rw-r--r--vendor/github.com/hashicorp/consul/ui-v2/app/styles/components/notice.scss26
-rw-r--r--vendor/github.com/hashicorp/consul/website/source/api/operator/license.html.md22
19 files changed, 1603 insertions, 292 deletions
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go
index a4cec5c5..ace51313 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go
@@ -65,6 +65,10 @@ type Provider struct {
//
// If ExpiryWindow is 0 or less it will be ignored.
ExpiryWindow time.Duration
+
+ // Optional authorization token value if set will be used as the value of
+ // the Authorization header of the endpoint credential request.
+ AuthorizationToken string
}
// NewProviderClient returns a credentials Provider for retrieving AWS credentials
@@ -152,6 +156,9 @@ func (p *Provider) getCredentials() (*getCredentialsOutput, error) {
out := &getCredentialsOutput{}
req := p.Client.NewRequest(op, nil, out)
req.HTTPRequest.Header.Set("Accept", "application/json")
+ if authToken := p.AuthorizationToken; len(authToken) != 0 {
+ req.HTTPRequest.Header.Set("Authorization", authToken)
+ }
return out, req.Send()
}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go b/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go
index 5040a2f6..6cd84cd9 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/defaults/defaults.go
@@ -112,8 +112,9 @@ func CredProviders(cfg *aws.Config, handlers request.Handlers) []credentials.Pro
}
const (
- httpProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_FULL_URI"
- ecsCredsProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"
+ httpProviderAuthorizationEnvVar = "AWS_CONTAINER_AUTHORIZATION_TOKEN"
+ httpProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_FULL_URI"
+ ecsCredsProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"
)
// RemoteCredProvider returns a credentials provider for the default remote
@@ -187,6 +188,7 @@ func httpCredProvider(cfg aws.Config, handlers request.Handlers, u string) crede
return endpointcreds.NewProviderClient(cfg, handlers, u,
func(p *endpointcreds.Provider) {
p.ExpiryWindow = 5 * time.Minute
+ p.AuthorizationToken = os.Getenv(httpProviderAuthorizationEnvVar)
},
)
}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go
index ef5f7329..53457cac 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go
@@ -72,6 +72,7 @@ func NewClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
cfg,
metadata.ClientInfo{
ServiceName: ServiceName,
+ ServiceID: ServiceName,
Endpoint: endpoint,
APIVersion: "latest",
},
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
index 86788100..005bde0d 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
@@ -1088,6 +1088,7 @@ var awsPartition = partition{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
+ "ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
@@ -1281,6 +1282,7 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
+ "sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
@@ -2002,11 +2004,36 @@ var awsPartition = partition{
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
+ "eu-west-3": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "us-east-1-fips": endpoint{
+ Hostname: "secretsmanager-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
+ "us-east-2": endpoint{},
+ "us-east-2-fips": endpoint{
+ Hostname: "secretsmanager-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
+ "us-west-1": endpoint{},
+ "us-west-1-fips": endpoint{
+ Hostname: "secretsmanager-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-1",
+ },
+ },
+ "us-west-2": endpoint{},
+ "us-west-2-fips": endpoint{
+ Hostname: "secretsmanager-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
},
},
"serverlessrepo": service{
@@ -2081,11 +2108,16 @@ var awsPartition = partition{
"servicediscovery": service{
Endpoints: endpoints{
- "eu-west-1": endpoint{},
- "us-east-1": endpoint{},
- "us-east-2": endpoint{},
- "us-west-1": endpoint{},
- "us-west-2": endpoint{},
+ "ap-northeast-1": endpoint{},
+ "ap-southeast-1": endpoint{},
+ "ap-southeast-2": endpoint{},
+ "eu-central-1": endpoint{},
+ "eu-west-1": endpoint{},
+ "eu-west-2": endpoint{},
+ "us-east-1": endpoint{},
+ "us-east-2": endpoint{},
+ "us-west-1": endpoint{},
+ "us-west-2": endpoint{},
},
},
"shield": service{
@@ -2407,8 +2439,26 @@ var awsPartition = partition{
Endpoints: endpoints{
"eu-west-1": endpoint{},
"us-east-1": endpoint{},
+ "us-east-1-fips": endpoint{
+ Hostname: "translate-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-1",
+ },
+ },
"us-east-2": endpoint{},
+ "us-east-2-fips": endpoint{
+ Hostname: "translate-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-east-2",
+ },
+ },
"us-west-2": endpoint{},
+ "us-west-2-fips": endpoint{
+ Hostname: "translate-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-west-2",
+ },
+ },
},
},
"waf": service{
@@ -2895,6 +2945,12 @@ var awsusgovPartition = partition{
"us-gov-west-1": endpoint{},
},
},
+ "application-autoscaling": service{
+
+ Endpoints: endpoints{
+ "us-gov-west-1": endpoint{},
+ },
+ },
"autoscaling": service{
Endpoints: endpoints{
@@ -3247,6 +3303,12 @@ var awsusgovPartition = partition{
},
Endpoints: endpoints{
"us-gov-west-1": endpoint{},
+ "us-gov-west-1-fips": endpoint{
+ Hostname: "translate-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Region: "us-gov-west-1",
+ },
+ },
},
},
},
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go
index 8aa0681d..5b52ab22 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go
@@ -98,25 +98,25 @@ var ignoredHeaders = rules{
var requiredSignedHeaders = rules{
whitelist{
mapRule{
- "Cache-Control": struct{}{},
- "Content-Disposition": struct{}{},
- "Content-Encoding": struct{}{},
- "Content-Language": struct{}{},
- "Content-Md5": struct{}{},
- "Content-Type": struct{}{},
- "Expires": struct{}{},
- "If-Match": struct{}{},
- "If-Modified-Since": struct{}{},
- "If-None-Match": struct{}{},
- "If-Unmodified-Since": struct{}{},
- "Range": struct{}{},
- "X-Amz-Acl": struct{}{},
- "X-Amz-Copy-Source": struct{}{},
- "X-Amz-Copy-Source-If-Match": struct{}{},
- "X-Amz-Copy-Source-If-Modified-Since": struct{}{},
- "X-Amz-Copy-Source-If-None-Match": struct{}{},
- "X-Amz-Copy-Source-If-Unmodified-Since": struct{}{},
- "X-Amz-Copy-Source-Range": struct{}{},
+ "Cache-Control": struct{}{},
+ "Content-Disposition": struct{}{},
+ "Content-Encoding": struct{}{},
+ "Content-Language": struct{}{},
+ "Content-Md5": struct{}{},
+ "Content-Type": struct{}{},
+ "Expires": struct{}{},
+ "If-Match": struct{}{},
+ "If-Modified-Since": struct{}{},
+ "If-None-Match": struct{}{},
+ "If-Unmodified-Since": struct{}{},
+ "Range": struct{}{},
+ "X-Amz-Acl": struct{}{},
+ "X-Amz-Copy-Source": struct{}{},
+ "X-Amz-Copy-Source-If-Match": struct{}{},
+ "X-Amz-Copy-Source-If-Modified-Since": struct{}{},
+ "X-Amz-Copy-Source-If-None-Match": struct{}{},
+ "X-Amz-Copy-Source-If-Unmodified-Since": struct{}{},
+ "X-Amz-Copy-Source-Range": struct{}{},
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Algorithm": struct{}{},
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key": struct{}{},
"X-Amz-Copy-Source-Server-Side-Encryption-Customer-Key-Md5": struct{}{},
@@ -739,7 +739,15 @@ func makeSha256Reader(reader io.ReadSeeker) []byte {
start, _ := reader.Seek(0, sdkio.SeekCurrent)
defer reader.Seek(start, sdkio.SeekStart)
- io.Copy(hash, reader)
+ // Use CopyN to avoid allocating the 32KB buffer in io.Copy for bodies
+ // smaller than 32KB. Fall back to io.Copy if we fail to determine the size.
+ size, err := aws.SeekerLen(reader)
+ if err != nil {
+ io.Copy(hash, reader)
+ } else {
+ io.CopyN(hash, reader, size)
+ }
+
return hash.Sum(nil)
}
diff --git a/vendor/github.com/aws/aws-sdk-go/aws/version.go b/vendor/github.com/aws/aws-sdk-go/aws/version.go
index e84bbc7f..13eb1060 100644
--- a/vendor/github.com/aws/aws-sdk-go/aws/version.go
+++ b/vendor/github.com/aws/aws-sdk-go/aws/version.go
@@ -5,4 +5,4 @@ package aws
const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK
-const SDKVersion = "1.15.24"
+const SDKVersion = "1.15.41"
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal.go
index 095e97cc..5793c047 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/ec2query/unmarshal.go
@@ -27,7 +27,11 @@ func Unmarshal(r *request.Request) {
decoder := xml.NewDecoder(r.HTTPResponse.Body)
err := xmlutil.UnmarshalXML(r.Data, decoder, "")
if err != nil {
- r.Error = awserr.New("SerializationError", "failed decoding EC2 Query response", err)
+ r.Error = awserr.NewRequestFailure(
+ awserr.New("SerializationError", "failed decoding EC2 Query response", err),
+ r.HTTPResponse.StatusCode,
+ r.RequestID,
+ )
return
}
}
@@ -52,7 +56,11 @@ func UnmarshalError(r *request.Request) {
resp := &xmlErrorResponse{}
err := xml.NewDecoder(r.HTTPResponse.Body).Decode(resp)
if err != nil && err != io.EOF {
- r.Error = awserr.New("SerializationError", "failed decoding EC2 Query error response", err)
+ r.Error = awserr.NewRequestFailure(
+ awserr.New("SerializationError", "failed decoding EC2 Query error response", err),
+ r.HTTPResponse.StatusCode,
+ r.RequestID,
+ )
} else {
r.Error = awserr.NewRequestFailure(
awserr.New(resp.Code, resp.Message, nil),
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go
index 2f6628d4..b11f3ee4 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go
@@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"io"
- "io/ioutil"
"reflect"
"time"
@@ -17,16 +16,10 @@ import (
func UnmarshalJSON(v interface{}, stream io.Reader) error {
var out interface{}
- b, err := ioutil.ReadAll(stream)
- if err != nil {
- return err
- }
-
- if len(b) == 0 {
+ err := json.NewDecoder(stream).Decode(&out)
+ if err == io.EOF {
return nil
- }
-
- if err := json.Unmarshal(b, &out); err != nil {
+ } else if err != nil {
return err
}
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go
index 56af4dc4..95155f6c 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go
@@ -64,7 +64,11 @@ func Unmarshal(req *request.Request) {
if req.DataFilled() {
err := jsonutil.UnmarshalJSON(req.Data, req.HTTPResponse.Body)
if err != nil {
- req.Error = awserr.New("SerializationError", "failed decoding JSON RPC response", err)
+ req.Error = awserr.NewRequestFailure(
+ awserr.New("SerializationError", "failed decoding JSON RPC response", err),
+ req.HTTPResponse.StatusCode,
+ req.RequestID,
+ )
}
}
return
@@ -80,20 +84,28 @@ func UnmarshalError(req *request.Request) {
defer req.HTTPResponse.Body.Close()
bodyBytes, err := ioutil.ReadAll(req.HTTPResponse.Body)
if err != nil {
- req.Error = awserr.New("SerializationError", "failed reading JSON RPC error response", err)
+ req.Error = awserr.NewRequestFailure(
+ awserr.New("SerializationError", "failed reading JSON RPC error response", err),
+ req.HTTPResponse.StatusCode,
+ req.RequestID,
+ )
return
}
if len(bodyBytes) == 0 {
req.Error = awserr.NewRequestFailure(
awserr.New("SerializationError", req.HTTPResponse.Status, nil),
req.HTTPResponse.StatusCode,
- "",
+ req.RequestID,
)
return
}
var jsonErr jsonErrorResponse
if err := json.Unmarshal(bodyBytes, &jsonErr); err != nil {
- req.Error = awserr.New("SerializationError", "failed decoding JSON RPC error response", err)
+ req.Error = awserr.NewRequestFailure(
+ awserr.New("SerializationError", "failed decoding JSON RPC error response", err),
+ req.HTTPResponse.StatusCode,
+ req.RequestID,
+ )
return
}
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go
index e0f4d5a5..3495c730 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal.go
@@ -23,7 +23,11 @@ func Unmarshal(r *request.Request) {
decoder := xml.NewDecoder(r.HTTPResponse.Body)
err := xmlutil.UnmarshalXML(r.Data, decoder, r.Operation.Name+"Result")
if err != nil {
- r.Error = awserr.New("SerializationError", "failed decoding Query response", err)
+ r.Error = awserr.NewRequestFailure(
+ awserr.New("SerializationError", "failed decoding Query response", err),
+ r.HTTPResponse.StatusCode,
+ r.RequestID,
+ )
return
}
}
diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go
index f2142961..46d354e8 100644
--- a/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go
+++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/query/unmarshal_error.go
@@ -28,7 +28,11 @@ func UnmarshalError(r *request.Request) {
bodyBytes, err := ioutil.ReadAll(r.HTTPResponse.Body)
if err != nil {
- r.Error = awserr.New("SerializationError", "failed to read from query HTTP response body", err)
+ r.Error = awserr.NewRequestFailure(
+ awserr.New("SerializationError", "failed to read from query HTTP response body", err),
+ r.HTTPResponse.StatusCode,
+ r.RequestID,
+ )
return
}
@@ -61,6 +65,10 @@ func UnmarshalError(r *request.Request) {
}
// Failed to retrieve any error message from the response body
- r.Error = awserr.New("SerializationError",
- "failed to decode query XML error response", decodeErr)
+ r.Error = awserr.NewRequestFailure(
+ awserr.New("SerializationError",
+ "failed to decode query XML error response", decodeErr),
+ r.HTTPResponse.StatusCode,
+ r.RequestID,
+ )
}
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
index 292fd5c5..495f5321 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
@@ -2499,6 +2499,11 @@ func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, out
// region. You specify the destination region by using its endpoint when making
// the request.
//
+// Copies of encrypted backing snapshots for the AMI are encrypted. Copies of
+// unencrypted backing snapshots remain unencrypted, unless you set Encrypted
+// during the copy operation. You cannot create an unencrypted copy of an encrypted
+// backing snapshot.
+//
// For more information about the prerequisites and limits when copying an AMI,
// see Copying an AMI (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html)
// in the Amazon Elastic Compute Cloud User Guide.
@@ -2850,8 +2855,8 @@ func (c *EC2) CreateDefaultVpcRequest(input *CreateDefaultVpcInput) (req *reques
// in the Amazon Virtual Private Cloud User Guide. You cannot specify the components
// of the default VPC yourself.
//
-// iIf you deleted your previous default VPC, you can create a default VPC.
-// You cannot have more than one default VPC per Region.
+// If you deleted your previous default VPC, you can create a default VPC. You
+// cannot have more than one default VPC per Region.
//
// If your account supports EC2-Classic, you cannot use this action to create
// a default VPC in a Region that supports EC2-Classic. If you want a default
@@ -9836,7 +9841,7 @@ func (c *EC2) DescribeHostReservationOfferingsRequest(input *DescribeHostReserva
// offerings that may not match the instance family and region of your Dedicated
// Hosts. When purchasing an offering, ensure that the instance family and Region
// of the offering matches that of the Dedicated Hosts with which it is to be
-// associated . For more information about supported instance types, see Dedicated
+// associated. For more information about supported instance types, see Dedicated
// Hosts Overview (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html)
// in the Amazon Elastic Compute Cloud User Guide.
//
@@ -10702,14 +10707,19 @@ func (c *EC2) DescribeInstanceCreditSpecificationsRequest(input *DescribeInstanc
// DescribeInstanceCreditSpecifications API operation for Amazon Elastic Compute Cloud.
//
-// Describes the credit option for CPU usage of one or more of your T2 instances.
-// The credit options are standard and unlimited.
+// Describes the credit option for CPU usage of one or more of your T2 or T3
+// instances. The credit options are standard and unlimited.
+//
+// If you do not specify an instance ID, Amazon EC2 returns T2 and T3 instances
+// with the unlimited credit option, as well as instances that were previously
+// configured as T2 or T3 with the unlimited credit option. For example, if
+// you resize a T2 instance, while it is configured as unlimited, to an M4 instance,
+// Amazon EC2 returns the M4 instance.
//
-// If you do not specify an instance ID, Amazon EC2 returns only the T2 instances
-// with the unlimited credit option. If you specify one or more instance IDs,
-// Amazon EC2 returns the credit option (standard or unlimited) of those instances.
-// If you specify an instance ID that is not valid, such as an instance that
-// is not a T2 instance, an error is returned.
+// If you specify one or more instance IDs, Amazon EC2 returns the credit option
+// (standard or unlimited) of those instances. If you specify an instance ID
+// that is not valid, such as an instance that is not a T2 or T3 instance, an
+// error is returned.
//
// Recently terminated instances might appear in the returned results. This
// interval is usually less than one hour.
@@ -10719,7 +10729,7 @@ func (c *EC2) DescribeInstanceCreditSpecificationsRequest(input *DescribeInstanc
// all, the call fails. If you specify only instance IDs in an unaffected zone,
// the call works normally.
//
-// For more information, see T2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html)
+// For more information, see Burstable Performance Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html)
// in the Amazon Elastic Compute Cloud User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -11809,6 +11819,12 @@ func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesI
Name: opDescribeNetworkInterfaces,
HTTPMethod: "POST",
HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
}
if input == nil {
@@ -11852,6 +11868,56 @@ func (c *EC2) DescribeNetworkInterfacesWithContext(ctx aws.Context, input *Descr
return out, req.Send()
}
+// DescribeNetworkInterfacesPages iterates over the pages of a DescribeNetworkInterfaces operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeNetworkInterfaces method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeNetworkInterfaces operation.
+// pageNum := 0
+// err := client.DescribeNetworkInterfacesPages(params,
+// func(page *DescribeNetworkInterfacesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *EC2) DescribeNetworkInterfacesPages(input *DescribeNetworkInterfacesInput, fn func(*DescribeNetworkInterfacesOutput, bool) bool) error {
+ return c.DescribeNetworkInterfacesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeNetworkInterfacesPagesWithContext same as DescribeNetworkInterfacesPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *EC2) DescribeNetworkInterfacesPagesWithContext(ctx aws.Context, input *DescribeNetworkInterfacesInput, fn func(*DescribeNetworkInterfacesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeNetworkInterfacesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeNetworkInterfacesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ cont := true
+ for p.Next() && cont {
+ cont = fn(p.Page().(*DescribeNetworkInterfacesOutput), !p.HasNextPage())
+ }
+ return p.Err()
+}
+
const opDescribePlacementGroups = "DescribePlacementGroups"
// DescribePlacementGroupsRequest generates a "aws/request.Request" representing the
@@ -18004,7 +18070,7 @@ func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request,
// is enabled, any instances that you launch with a tenancy of host but without
// a specific host ID are placed onto any available Dedicated Host in your account
// that has auto-placement enabled. When auto-placement is disabled, you need
-// to provide a host ID ito have the instance launch onto a specific host. If
+// to provide a host ID to have the instance launch onto a specific host. If
// no host ID is provided, the instance is launched onto a suitable host with
// auto-placement enabled.
//
@@ -18448,10 +18514,10 @@ func (c *EC2) ModifyInstanceCreditSpecificationRequest(input *ModifyInstanceCred
// ModifyInstanceCreditSpecification API operation for Amazon Elastic Compute Cloud.
//
-// Modifies the credit option for CPU usage on a running or stopped T2 instance.
-// The credit options are standard and unlimited.
+// Modifies the credit option for CPU usage on a running or stopped T2 or T3
+// instance. The credit options are standard and unlimited.
//
-// For more information, see T2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html)
+// For more information, see Burstable Performance Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html)
// in the Amazon Elastic Compute Cloud User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -20709,7 +20775,7 @@ func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Reques
// When you no longer want to use an On-Demand Dedicated Host it can be released.
// On-Demand billing is stopped and the host goes into released state. The host
// ID of Dedicated Hosts that have been released can no longer be specified
-// in another request, for example, ModifyHosts. You must stop or terminate
+// in another request, for example, to modify the host. You must stop or terminate
// all instances on a host before it can be released.
//
// When Dedicated Hosts are released, it may take some time for them to stop
@@ -23133,7 +23199,6 @@ func (s *AcceptVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulIt
return s
}
-// Contains the parameters for AcceptVpcPeeringConnection.
type AcceptVpcPeeringConnectionInput struct {
_ struct{} `type:"structure"`
@@ -23170,7 +23235,6 @@ func (s *AcceptVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *A
return s
}
-// Contains the output of AcceptVpcPeeringConnection.
type AcceptVpcPeeringConnectionOutput struct {
_ struct{} `type:"structure"`
@@ -23493,7 +23557,6 @@ func (s *AllocateAddressOutput) SetPublicIp(v string) *AllocateAddressOutput {
return s
}
-// Contains the parameters for AllocateHosts.
type AllocateHostsInput struct {
_ struct{} `type:"structure"`
@@ -23525,6 +23588,9 @@ type AllocateHostsInput struct {
//
// Quantity is a required field
Quantity *int64 `locationName:"quantity" type:"integer" required:"true"`
+
+ // The tags to apply to the Dedicated Host during creation.
+ TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
}
// String returns the string representation
@@ -23586,6 +23652,12 @@ func (s *AllocateHostsInput) SetQuantity(v int64) *AllocateHostsInput {
return s
}
+// SetTagSpecifications sets the TagSpecifications field's value.
+func (s *AllocateHostsInput) SetTagSpecifications(v []*TagSpecification) *AllocateHostsInput {
+ s.TagSpecifications = v
+ return s
+}
+
// Contains the output of AllocateHosts.
type AllocateHostsOutput struct {
_ struct{} `type:"structure"`
@@ -23939,7 +24011,6 @@ func (s *AssociateAddressOutput) SetAssociationId(v string) *AssociateAddressOut
return s
}
-// Contains the parameters for AssociateDhcpOptions.
type AssociateDhcpOptionsInput struct {
_ struct{} `type:"structure"`
@@ -24094,7 +24165,6 @@ func (s *AssociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(v *
return s
}
-// Contains the parameters for AssociateRouteTable.
type AssociateRouteTableInput struct {
_ struct{} `type:"structure"`
@@ -24159,7 +24229,6 @@ func (s *AssociateRouteTableInput) SetSubnetId(v string) *AssociateRouteTableInp
return s
}
-// Contains the output of AssociateRouteTable.
type AssociateRouteTableOutput struct {
_ struct{} `type:"structure"`
@@ -24367,7 +24436,6 @@ func (s *AssociateVpcCidrBlockOutput) SetVpcId(v string) *AssociateVpcCidrBlockO
return s
}
-// Contains the parameters for AttachClassicLinkVpc.
type AttachClassicLinkVpcInput struct {
_ struct{} `type:"structure"`
@@ -24447,7 +24515,6 @@ func (s *AttachClassicLinkVpcInput) SetVpcId(v string) *AttachClassicLinkVpcInpu
return s
}
-// Contains the output of AttachClassicLinkVpc.
type AttachClassicLinkVpcOutput struct {
_ struct{} `type:"structure"`
@@ -24471,7 +24538,6 @@ func (s *AttachClassicLinkVpcOutput) SetReturn(v bool) *AttachClassicLinkVpcOutp
return s
}
-// Contains the parameters for AttachInternetGateway.
type AttachInternetGatewayInput struct {
_ struct{} `type:"structure"`
@@ -24870,7 +24936,6 @@ func (s *AttributeValue) SetValue(v string) *AttributeValue {
return s
}
-// Contains the parameters for AuthorizeSecurityGroupEgress.
type AuthorizeSecurityGroupEgressInput struct {
_ struct{} `type:"structure"`
@@ -25002,7 +25067,6 @@ func (s AuthorizeSecurityGroupEgressOutput) GoString() string {
return s.String()
}
-// Contains the parameters for AuthorizeSecurityGroupIngress.
type AuthorizeSecurityGroupIngressInput struct {
_ struct{} `type:"structure"`
@@ -26888,10 +26952,12 @@ type CopyImageInput struct {
DryRun *bool `locationName:"dryRun" type:"boolean"`
// Specifies whether the destination snapshots of the copied image should be
- // encrypted. The default CMK for EBS is used unless a non-default AWS Key Management
- // Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see
- // Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
- // in the Amazon Elastic Compute Cloud User Guide.
+ // encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot
+ // create an unencrypted copy of an encrypted snapshot. The default CMK for
+ // EBS is used unless you specify a non-default AWS Key Management Service (AWS
+ // KMS) CMK using KmsKeyId. For more information, see Amazon EBS Encryption
+ // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in
+ // the Amazon Elastic Compute Cloud User Guide.
Encrypted *bool `locationName:"encrypted" type:"boolean"`
// An identifier for the AWS Key Management Service (AWS KMS) customer master
@@ -27065,12 +27131,11 @@ type CopySnapshotInput struct {
DryRun *bool `locationName:"dryRun" type:"boolean"`
// Specifies whether the destination snapshot should be encrypted. You can encrypt
- // a copy of an unencrypted snapshot using this flag, but you cannot use it
- // to create an unencrypted copy from an encrypted snapshot. Your default CMK
- // for EBS is used unless a non-default AWS Key Management Service (AWS KMS)
- // CMK is specified with KmsKeyId. For more information, see Amazon EBS Encryption
- // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in
- // the Amazon Elastic Compute Cloud User Guide.
+ // a copy of an unencrypted snapshot, but you cannot use it to create an unencrypted
+ // copy of an encrypted snapshot. Your default CMK for EBS is used unless you
+ // specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId.
+ // For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
+ // in the Amazon Elastic Compute Cloud User Guide.
Encrypted *bool `locationName:"encrypted" type:"boolean"`
// An identifier for the AWS Key Management Service (AWS KMS) customer master
@@ -27472,7 +27537,6 @@ func (s *CreateDefaultSubnetOutput) SetSubnet(v *Subnet) *CreateDefaultSubnetOut
return s
}
-// Contains the parameters for CreateDefaultVpc.
type CreateDefaultVpcInput struct {
_ struct{} `type:"structure"`
@@ -27499,7 +27563,6 @@ func (s *CreateDefaultVpcInput) SetDryRun(v bool) *CreateDefaultVpcInput {
return s
}
-// Contains the output of CreateDefaultVpc.
type CreateDefaultVpcOutput struct {
_ struct{} `type:"structure"`
@@ -27523,7 +27586,6 @@ func (s *CreateDefaultVpcOutput) SetVpc(v *Vpc) *CreateDefaultVpcOutput {
return s
}
-// Contains the parameters for CreateDhcpOptions.
type CreateDhcpOptionsInput struct {
_ struct{} `type:"structure"`
@@ -27574,7 +27636,6 @@ func (s *CreateDhcpOptionsInput) SetDryRun(v bool) *CreateDhcpOptionsInput {
return s
}
-// Contains the output of CreateDhcpOptions.
type CreateDhcpOptionsOutput struct {
_ struct{} `type:"structure"`
@@ -27901,7 +27962,6 @@ func (s *CreateFleetOutput) SetFleetId(v string) *CreateFleetOutput {
return s
}
-// Contains the parameters for CreateFlowLogs.
type CreateFlowLogsInput struct {
_ struct{} `type:"structure"`
@@ -28045,7 +28105,6 @@ func (s *CreateFlowLogsInput) SetTrafficType(v string) *CreateFlowLogsInput {
return s
}
-// Contains the output of CreateFlowLogs.
type CreateFlowLogsOutput struct {
_ struct{} `type:"structure"`
@@ -28422,7 +28481,6 @@ func (s *CreateInstanceExportTaskOutput) SetExportTask(v *ExportTask) *CreateIns
return s
}
-// Contains the parameters for CreateInternetGateway.
type CreateInternetGatewayInput struct {
_ struct{} `type:"structure"`
@@ -28449,7 +28507,6 @@ func (s *CreateInternetGatewayInput) SetDryRun(v bool) *CreateInternetGatewayInp
return s
}
-// Contains the output of CreateInternetGateway.
type CreateInternetGatewayOutput struct {
_ struct{} `type:"structure"`
@@ -28473,7 +28530,6 @@ func (s *CreateInternetGatewayOutput) SetInternetGateway(v *InternetGateway) *Cr
return s
}
-// Contains the parameters for CreateKeyPair.
type CreateKeyPairInput struct {
_ struct{} `type:"structure"`
@@ -28813,7 +28869,6 @@ func (s *CreateLaunchTemplateVersionOutput) SetLaunchTemplateVersion(v *LaunchTe
return s
}
-// Contains the parameters for CreateNatGateway.
type CreateNatGatewayInput struct {
_ struct{} `type:"structure"`
@@ -28880,7 +28935,6 @@ func (s *CreateNatGatewayInput) SetSubnetId(v string) *CreateNatGatewayInput {
return s
}
-// Contains the output of CreateNatGateway.
type CreateNatGatewayOutput struct {
_ struct{} `type:"structure"`
@@ -28914,7 +28968,6 @@ func (s *CreateNatGatewayOutput) SetNatGateway(v *NatGateway) *CreateNatGatewayO
return s
}
-// Contains the parameters for CreateNetworkAclEntry.
type CreateNetworkAclEntryInput struct {
_ struct{} `type:"structure"`
@@ -29083,7 +29136,6 @@ func (s CreateNetworkAclEntryOutput) GoString() string {
return s.String()
}
-// Contains the parameters for CreateNetworkAcl.
type CreateNetworkAclInput struct {
_ struct{} `type:"structure"`
@@ -29134,7 +29186,6 @@ func (s *CreateNetworkAclInput) SetVpcId(v string) *CreateNetworkAclInput {
return s
}
-// Contains the output of CreateNetworkAcl.
type CreateNetworkAclOutput struct {
_ struct{} `type:"structure"`
@@ -29613,7 +29664,6 @@ func (s *CreateReservedInstancesListingOutput) SetReservedInstancesListings(v []
return s
}
-// Contains the parameters for CreateRoute.
type CreateRouteInput struct {
_ struct{} `type:"structure"`
@@ -29740,7 +29790,6 @@ func (s *CreateRouteInput) SetVpcPeeringConnectionId(v string) *CreateRouteInput
return s
}
-// Contains the output of CreateRoute.
type CreateRouteOutput struct {
_ struct{} `type:"structure"`
@@ -29764,7 +29813,6 @@ func (s *CreateRouteOutput) SetReturn(v bool) *CreateRouteOutput {
return s
}
-// Contains the parameters for CreateRouteTable.
type CreateRouteTableInput struct {
_ struct{} `type:"structure"`
@@ -29815,7 +29863,6 @@ func (s *CreateRouteTableInput) SetVpcId(v string) *CreateRouteTableInput {
return s
}
-// Contains the output of CreateRouteTable.
type CreateRouteTableOutput struct {
_ struct{} `type:"structure"`
@@ -29839,7 +29886,6 @@ func (s *CreateRouteTableOutput) SetRouteTable(v *RouteTable) *CreateRouteTableO
return s
}
-// Contains the parameters for CreateSecurityGroup.
type CreateSecurityGroupInput struct {
_ struct{} `type:"structure"`
@@ -29925,7 +29971,6 @@ func (s *CreateSecurityGroupInput) SetVpcId(v string) *CreateSecurityGroupInput
return s
}
-// Contains the output of CreateSecurityGroup.
type CreateSecurityGroupOutput struct {
_ struct{} `type:"structure"`
@@ -30102,7 +30147,6 @@ func (s *CreateSpotDatafeedSubscriptionOutput) SetSpotDatafeedSubscription(v *Sp
return s
}
-// Contains the parameters for CreateSubnet.
type CreateSubnetInput struct {
_ struct{} `type:"structure"`
@@ -30189,7 +30233,6 @@ func (s *CreateSubnetInput) SetVpcId(v string) *CreateSubnetInput {
return s
}
-// Contains the output of CreateSubnet.
type CreateSubnetOutput struct {
_ struct{} `type:"structure"`
@@ -30213,7 +30256,6 @@ func (s *CreateSubnetOutput) SetSubnet(v *Subnet) *CreateSubnetOutput {
return s
}
-// Contains the parameters for CreateTags.
type CreateTagsInput struct {
_ struct{} `type:"structure"`
@@ -30687,7 +30729,7 @@ type CreateVpcEndpointInput struct {
// true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to
// set the VPC attributes.
//
- // Default: true
+ // Default: false
PrivateDnsEnabled *bool `type:"boolean"`
// (Gateway endpoint) One or more route table IDs.
@@ -30942,7 +30984,6 @@ func (s *CreateVpcEndpointServiceConfigurationOutput) SetServiceConfiguration(v
return s
}
-// Contains the parameters for CreateVpc.
type CreateVpcInput struct {
_ struct{} `type:"structure"`
@@ -31022,7 +31063,6 @@ func (s *CreateVpcInput) SetInstanceTenancy(v string) *CreateVpcInput {
return s
}
-// Contains the output of CreateVpc.
type CreateVpcOutput struct {
_ struct{} `type:"structure"`
@@ -31046,7 +31086,6 @@ func (s *CreateVpcOutput) SetVpc(v *Vpc) *CreateVpcOutput {
return s
}
-// Contains the parameters for CreateVpcPeeringConnection.
type CreateVpcPeeringConnectionInput struct {
_ struct{} `type:"structure"`
@@ -31115,7 +31154,6 @@ func (s *CreateVpcPeeringConnectionInput) SetVpcId(v string) *CreateVpcPeeringCo
return s
}
-// Contains the output of CreateVpcPeeringConnection.
type CreateVpcPeeringConnectionOutput struct {
_ struct{} `type:"structure"`
@@ -31415,12 +31453,12 @@ func (s *CreateVpnGatewayOutput) SetVpnGateway(v *VpnGateway) *CreateVpnGatewayO
return s
}
-// Describes the credit option for CPU usage of a T2 instance.
+// Describes the credit option for CPU usage of a T2 or T3 instance.
type CreditSpecification struct {
_ struct{} `type:"structure"`
- // The credit option for CPU usage of a T2 instance. Valid values are standard
- // and unlimited.
+ // The credit option for CPU usage of a T2 or T3 instance. Valid values are
+ // standard and unlimited.
CpuCredits *string `locationName:"cpuCredits" type:"string"`
}
@@ -31440,12 +31478,12 @@ func (s *CreditSpecification) SetCpuCredits(v string) *CreditSpecification {
return s
}
-// The credit option for CPU usage of a T2 instance.
+// The credit option for CPU usage of a T2 or T3 instance.
type CreditSpecificationRequest struct {
_ struct{} `type:"structure"`
- // The credit option for CPU usage of a T2 instance. Valid values are standard
- // and unlimited.
+ // The credit option for CPU usage of a T2 or T3 instance. Valid values are
+ // standard and unlimited.
//
// CpuCredits is a required field
CpuCredits *string `type:"string" required:"true"`
@@ -31616,7 +31654,6 @@ func (s DeleteCustomerGatewayOutput) GoString() string {
return s.String()
}
-// Contains the parameters for DeleteDhcpOptions.
type DeleteDhcpOptionsInput struct {
_ struct{} `type:"structure"`
@@ -31959,7 +31996,6 @@ func (s *DeleteFleetsOutput) SetUnsuccessfulFleetDeletions(v []*DeleteFleetError
return s
}
-// Contains the parameters for DeleteFlowLogs.
type DeleteFlowLogsInput struct {
_ struct{} `type:"structure"`
@@ -32010,7 +32046,6 @@ func (s *DeleteFlowLogsInput) SetFlowLogIds(v []*string) *DeleteFlowLogsInput {
return s
}
-// Contains the output of DeleteFlowLogs.
type DeleteFlowLogsOutput struct {
_ struct{} `type:"structure"`
@@ -32107,7 +32142,6 @@ func (s *DeleteFpgaImageOutput) SetReturn(v bool) *DeleteFpgaImageOutput {
return s
}
-// Contains the parameters for DeleteInternetGateway.
type DeleteInternetGatewayInput struct {
_ struct{} `type:"structure"`
@@ -32172,7 +32206,6 @@ func (s DeleteInternetGatewayOutput) GoString() string {
return s.String()
}
-// Contains the parameters for DeleteKeyPair.
type DeleteKeyPairInput struct {
_ struct{} `type:"structure"`
@@ -32517,7 +32550,6 @@ func (s *DeleteLaunchTemplateVersionsResponseSuccessItem) SetVersionNumber(v int
return s
}
-// Contains the parameters for DeleteNatGateway.
type DeleteNatGatewayInput struct {
_ struct{} `type:"structure"`
@@ -32556,7 +32588,6 @@ func (s *DeleteNatGatewayInput) SetNatGatewayId(v string) *DeleteNatGatewayInput
return s
}
-// Contains the output of DeleteNatGateway.
type DeleteNatGatewayOutput struct {
_ struct{} `type:"structure"`
@@ -32580,7 +32611,6 @@ func (s *DeleteNatGatewayOutput) SetNatGatewayId(v string) *DeleteNatGatewayOutp
return s
}
-// Contains the parameters for DeleteNetworkAclEntry.
type DeleteNetworkAclEntryInput struct {
_ struct{} `type:"structure"`
@@ -32673,7 +32703,6 @@ func (s DeleteNetworkAclEntryOutput) GoString() string {
return s.String()
}
-// Contains the parameters for DeleteNetworkAcl.
type DeleteNetworkAclInput struct {
_ struct{} `type:"structure"`
@@ -32953,7 +32982,6 @@ func (s DeletePlacementGroupOutput) GoString() string {
return s.String()
}
-// Contains the parameters for DeleteRoute.
type DeleteRouteInput struct {
_ struct{} `type:"structure"`
@@ -33038,7 +33066,6 @@ func (s DeleteRouteOutput) GoString() string {
return s.String()
}
-// Contains the parameters for DeleteRouteTable.
type DeleteRouteTableInput struct {
_ struct{} `type:"structure"`
@@ -33103,7 +33130,6 @@ func (s DeleteRouteTableOutput) GoString() string {
return s.String()
}
-// Contains the parameters for DeleteSecurityGroup.
type DeleteSecurityGroupInput struct {
_ struct{} `type:"structure"`
@@ -33269,7 +33295,6 @@ func (s DeleteSpotDatafeedSubscriptionOutput) GoString() string {
return s.String()
}
-// Contains the parameters for DeleteSubnet.
type DeleteSubnetInput struct {
_ struct{} `type:"structure"`
@@ -33334,7 +33359,6 @@ func (s DeleteSubnetOutput) GoString() string {
return s.String()
}
-// Contains the parameters for DeleteTags.
type DeleteTagsInput struct {
_ struct{} `type:"structure"`
@@ -33701,7 +33725,6 @@ func (s *DeleteVpcEndpointsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *Delet
return s
}
-// Contains the parameters for DeleteVpc.
type DeleteVpcInput struct {
_ struct{} `type:"structure"`
@@ -33766,7 +33789,6 @@ func (s DeleteVpcOutput) GoString() string {
return s.String()
}
-// Contains the parameters for DeleteVpcPeeringConnection.
type DeleteVpcPeeringConnectionInput struct {
_ struct{} `type:"structure"`
@@ -33817,7 +33839,6 @@ func (s *DeleteVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *D
return s
}
-// Contains the output of DeleteVpcPeeringConnection.
type DeleteVpcPeeringConnectionOutput struct {
_ struct{} `type:"structure"`
@@ -34507,7 +34528,6 @@ func (s *DescribeBundleTasksOutput) SetBundleTasks(v []*BundleTask) *DescribeBun
return s
}
-// Contains the parameters for DescribeClassicLinkInstances.
type DescribeClassicLinkInstancesInput struct {
_ struct{} `type:"structure"`
@@ -34596,7 +34616,6 @@ func (s *DescribeClassicLinkInstancesInput) SetNextToken(v string) *DescribeClas
return s
}
-// Contains the output of DescribeClassicLinkInstances.
type DescribeClassicLinkInstancesOutput struct {
_ struct{} `type:"structure"`
@@ -34785,7 +34804,6 @@ func (s *DescribeCustomerGatewaysOutput) SetCustomerGateways(v []*CustomerGatewa
return s
}
-// Contains the parameters for DescribeDhcpOptions.
type DescribeDhcpOptionsInput struct {
_ struct{} `type:"structure"`
@@ -34848,7 +34866,6 @@ func (s *DescribeDhcpOptionsInput) SetFilters(v []*Filter) *DescribeDhcpOptionsI
return s
}
-// Contains the output of DescribeDhcpOptions.
type DescribeDhcpOptionsOutput struct {
_ struct{} `type:"structure"`
@@ -35515,7 +35532,6 @@ func (s *DescribeFleetsOutput) SetNextToken(v string) *DescribeFleetsOutput {
return s
}
-// Contains the parameters for DescribeFlowLogs.
type DescribeFlowLogsInput struct {
_ struct{} `type:"structure"`
@@ -35596,7 +35612,6 @@ func (s *DescribeFlowLogsInput) SetNextToken(v string) *DescribeFlowLogsInput {
return s
}
-// Contains the output of DescribeFlowLogs.
type DescribeFlowLogsOutput struct {
_ struct{} `type:"structure"`
@@ -36002,7 +36017,7 @@ type DescribeHostReservationsInput struct {
// The maximum number of results to return for the request in a single page.
// The remaining results can be seen by sending another request with the returned
- // nextToken value. This value can be between 5 and 500.If maxResults is given
+ // nextToken value. This value can be between 5 and 500. If maxResults is given
// a larger value than 500, you receive an error.
MaxResults *int64 `type:"integer"`
@@ -36077,7 +36092,6 @@ func (s *DescribeHostReservationsOutput) SetNextToken(v string) *DescribeHostRes
return s
}
-// Contains the parameters for DescribeHosts.
type DescribeHostsInput struct {
_ struct{} `type:"structure"`
@@ -36152,7 +36166,6 @@ func (s *DescribeHostsInput) SetNextToken(v string) *DescribeHostsInput {
return s
}
-// Contains the output of DescribeHosts.
type DescribeHostsOutput struct {
_ struct{} `type:"structure"`
@@ -37759,7 +37772,6 @@ func (s *DescribeInstancesOutput) SetReservations(v []*Reservation) *DescribeIns
return s
}
-// Contains the parameters for DescribeInternetGateways.
type DescribeInternetGatewaysInput struct {
_ struct{} `type:"structure"`
@@ -37823,7 +37835,6 @@ func (s *DescribeInternetGatewaysInput) SetInternetGatewayIds(v []*string) *Desc
return s
}
-// Contains the output of DescribeInternetGateways.
type DescribeInternetGatewaysOutput struct {
_ struct{} `type:"structure"`
@@ -37847,7 +37858,6 @@ func (s *DescribeInternetGatewaysOutput) SetInternetGateways(v []*InternetGatewa
return s
}
-// Contains the parameters for DescribeKeyPairs.
type DescribeKeyPairsInput struct {
_ struct{} `type:"structure"`
@@ -37898,7 +37908,6 @@ func (s *DescribeKeyPairsInput) SetKeyNames(v []*string) *DescribeKeyPairsInput
return s
}
-// Contains the output of DescribeKeyPairs.
type DescribeKeyPairsOutput struct {
_ struct{} `type:"structure"`
@@ -38313,7 +38322,6 @@ func (s *DescribeMovingAddressesOutput) SetNextToken(v string) *DescribeMovingAd
return s
}
-// Contains the parameters for DescribeNatGateways.
type DescribeNatGatewaysInput struct {
_ struct{} `type:"structure"`
@@ -38388,7 +38396,6 @@ func (s *DescribeNatGatewaysInput) SetNextToken(v string) *DescribeNatGatewaysIn
return s
}
-// Contains the output of DescribeNatGateways.
type DescribeNatGatewaysOutput struct {
_ struct{} `type:"structure"`
@@ -38422,7 +38429,6 @@ func (s *DescribeNatGatewaysOutput) SetNextToken(v string) *DescribeNatGatewaysO
return s
}
-// Contains the parameters for DescribeNetworkAcls.
type DescribeNetworkAclsInput struct {
_ struct{} `type:"structure"`
@@ -38446,8 +38452,6 @@ type DescribeNetworkAclsInput struct {
//
// * entry.cidr - The IPv4 CIDR range specified in the entry.
//
- // * entry.egress - Indicates whether the entry applies to egress traffic.
- //
// * entry.icmp.code - The ICMP code specified in the entry, if any.
//
// * entry.icmp.type - The ICMP type specified in the entry, if any.
@@ -38466,7 +38470,7 @@ type DescribeNetworkAclsInput struct {
// * entry.rule-action - Allows or denies the matching traffic (allow | deny).
//
// * entry.rule-number - The number of an entry (in other words, rule) in
- // the ACL's set of entries.
+ // the set of ACL entries.
//
// * network-acl-id - The ID of the network ACL.
//
@@ -38517,7 +38521,6 @@ func (s *DescribeNetworkAclsInput) SetNetworkAclIds(v []*string) *DescribeNetwor
return s
}
-// Contains the output of DescribeNetworkAcls.
type DescribeNetworkAclsOutput struct {
_ struct{} `type:"structure"`
@@ -38877,10 +38880,18 @@ type DescribeNetworkInterfacesInput struct {
// * vpc-id - The ID of the VPC for the network interface.
Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
+ // The maximum number of items to return for this request. The request returns
+ // a token that you can specify in a subsequent call to get the next set of
+ // results.
+ MaxResults *int64 `type:"integer"`
+
// One or more network interface IDs.
//
// Default: Describes all your network interfaces.
NetworkInterfaceIds []*string `locationName:"NetworkInterfaceId" locationNameList:"item" type:"list"`
+
+ // The token to retrieve the next page of results.
+ NextToken *string `type:"string"`
}
// String returns the string representation
@@ -38905,18 +38916,34 @@ func (s *DescribeNetworkInterfacesInput) SetFilters(v []*Filter) *DescribeNetwor
return s
}
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeNetworkInterfacesInput) SetMaxResults(v int64) *DescribeNetworkInterfacesInput {
+ s.MaxResults = &v
+ return s
+}
+
// SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value.
func (s *DescribeNetworkInterfacesInput) SetNetworkInterfaceIds(v []*string) *DescribeNetworkInterfacesInput {
s.NetworkInterfaceIds = v
return s
}
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeNetworkInterfacesInput) SetNextToken(v string) *DescribeNetworkInterfacesInput {
+ s.NextToken = &v
+ return s
+}
+
// Contains the output of DescribeNetworkInterfaces.
type DescribeNetworkInterfacesOutput struct {
_ struct{} `type:"structure"`
// Information about one or more network interfaces.
NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
+
+ // The token to use to retrieve the next page of results. This value is null
+ // when there are no more results to return.
+ NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
@@ -38935,6 +38962,12 @@ func (s *DescribeNetworkInterfacesOutput) SetNetworkInterfaces(v []*NetworkInter
return s
}
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeNetworkInterfacesOutput) SetNextToken(v string) *DescribeNetworkInterfacesOutput {
+ s.NextToken = &v
+ return s
+}
+
// Contains the parameters for DescribePlacementGroups.
type DescribePlacementGroupsInput struct {
_ struct{} `type:"structure"`
@@ -39013,7 +39046,6 @@ func (s *DescribePlacementGroupsOutput) SetPlacementGroups(v []*PlacementGroup)
return s
}
-// Contains the parameters for DescribePrefixLists.
type DescribePrefixListsInput struct {
_ struct{} `type:"structure"`
@@ -39086,7 +39118,6 @@ func (s *DescribePrefixListsInput) SetPrefixListIds(v []*string) *DescribePrefix
return s
}
-// Contains the output of DescribePrefixLists.
type DescribePrefixListsOutput struct {
_ struct{} `type:"structure"`
@@ -39850,7 +39881,6 @@ func (s *DescribeReservedInstancesOutput) SetReservedInstances(v []*ReservedInst
return s
}
-// Contains the parameters for DescribeRouteTables.
type DescribeRouteTablesInput struct {
_ struct{} `type:"structure"`
@@ -39956,7 +39986,6 @@ func (s *DescribeRouteTablesInput) SetRouteTableIds(v []*string) *DescribeRouteT
return s
}
-// Contains the output of DescribeRouteTables.
type DescribeRouteTablesOutput struct {
_ struct{} `type:"structure"`
@@ -40262,7 +40291,7 @@ func (s *DescribeScheduledInstancesOutput) SetScheduledInstanceSet(v []*Schedule
type DescribeSecurityGroupReferencesInput struct {
_ struct{} `type:"structure"`
- // Checks whether you have the required permissions for the operation, without
+ // Checks whether you have the required permissions for the action, without
// actually making the request, and provides an error response. If you have
// the required permissions, the error response is DryRunOperation. Otherwise,
// it is UnauthorizedOperation.
@@ -40332,7 +40361,6 @@ func (s *DescribeSecurityGroupReferencesOutput) SetSecurityGroupReferenceSet(v [
return s
}
-// Contains the parameters for DescribeSecurityGroups.
type DescribeSecurityGroupsInput struct {
_ struct{} `type:"structure"`
@@ -40491,7 +40519,6 @@ func (s *DescribeSecurityGroupsInput) SetNextToken(v string) *DescribeSecurityGr
return s
}
-// Contains the output of DescribeSecurityGroups.
type DescribeSecurityGroupsOutput struct {
_ struct{} `type:"structure"`
@@ -41553,7 +41580,7 @@ func (s *DescribeSpotPriceHistoryOutput) SetSpotPriceHistory(v []*SpotPrice) *De
type DescribeStaleSecurityGroupsInput struct {
_ struct{} `type:"structure"`
- // Checks whether you have the required permissions for the operation, without
+ // Checks whether you have the required permissions for the action, without
// actually making the request, and provides an error response. If you have
// the required permissions, the error response is DryRunOperation. Otherwise,
// it is UnauthorizedOperation.
@@ -41660,7 +41687,6 @@ func (s *DescribeStaleSecurityGroupsOutput) SetStaleSecurityGroupSet(v []*StaleS
return s
}
-// Contains the parameters for DescribeSubnets.
type DescribeSubnetsInput struct {
_ struct{} `type:"structure"`
@@ -41745,7 +41771,6 @@ func (s *DescribeSubnetsInput) SetSubnetIds(v []*string) *DescribeSubnetsInput {
return s
}
-// Contains the output of DescribeSubnets.
type DescribeSubnetsOutput struct {
_ struct{} `type:"structure"`
@@ -41769,7 +41794,6 @@ func (s *DescribeSubnetsOutput) SetSubnets(v []*Subnet) *DescribeSubnetsOutput {
return s
}
-// Contains the parameters for DescribeTags.
type DescribeTagsInput struct {
_ struct{} `type:"structure"`
@@ -41783,13 +41807,17 @@ type DescribeTagsInput struct {
//
// * key - The tag key.
//
- // * resource-id - The resource ID.
+ // * resource-id - The ID of the resource.
+ //
+ // * resource-type - The resource type (customer-gateway | dedicated-host
+ // | dhcp-options | elastic-ip | fleet | fpga-image | image | instance |
+ // internet-gateway | launch-template | natgateway | network-acl | network-interface
+ // | reserved-instances | route-table | security-group | snapshot | spot-instances-request
+ // | subnet | volume | vpc | vpc-peering-connection | vpn-connection | vpn-gateway).
//
- // * resource-type - The resource type (customer-gateway | dhcp-options |
- // elastic-ip | fleet | fpga-image | image | instance | internet-gateway
- // | launch-template | natgateway | network-acl | network-interface | reserved-instances
- // | route-table | security-group | snapshot | spot-instances-request | subnet
- // | volume | vpc | vpc-peering-connection | vpn-connection | vpn-gateway).
+ // * tag:<key> - The key/value combination of the tag. For example, specify
+ // "tag:Owner" for the filter name and "TeamA" for the filter value to find
+ // resources with the tag "Owner=TeamA".
//
// * value - The tag value.
Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
@@ -41837,7 +41865,6 @@ func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput {
return s
}
-// Contains the output of DescribeTags.
type DescribeTagsOutput struct {
_ struct{} `type:"structure"`
@@ -41845,7 +41872,7 @@ type DescribeTagsOutput struct {
// when there are no more results to return.
NextToken *string `locationName:"nextToken" type:"string"`
- // A list of tags.
+ // The tags.
Tags []*TagDescription `locationName:"tagSet" locationNameList:"item" type:"list"`
}
@@ -42366,7 +42393,6 @@ func (s *DescribeVolumesOutput) SetVolumes(v []*Volume) *DescribeVolumesOutput {
return s
}
-// Contains the parameters for DescribeVpcAttribute.
type DescribeVpcAttributeInput struct {
_ struct{} `type:"structure"`
@@ -42431,7 +42457,6 @@ func (s *DescribeVpcAttributeInput) SetVpcId(v string) *DescribeVpcAttributeInpu
return s
}
-// Contains the output of DescribeVpcAttribute.
type DescribeVpcAttributeOutput struct {
_ struct{} `type:"structure"`
@@ -42477,7 +42502,6 @@ func (s *DescribeVpcAttributeOutput) SetVpcId(v string) *DescribeVpcAttributeOut
return s
}
-// Contains the parameters for DescribeVpcClassicLinkDnsSupport.
type DescribeVpcClassicLinkDnsSupportInput struct {
_ struct{} `type:"structure"`
@@ -42538,7 +42562,6 @@ func (s *DescribeVpcClassicLinkDnsSupportInput) SetVpcIds(v []*string) *Describe
return s
}
-// Contains the output of DescribeVpcClassicLinkDnsSupport.
type DescribeVpcClassicLinkDnsSupportOutput struct {
_ struct{} `type:"structure"`
@@ -42571,7 +42594,6 @@ func (s *DescribeVpcClassicLinkDnsSupportOutput) SetVpcs(v []*ClassicLinkDnsSupp
return s
}
-// Contains the parameters for DescribeVpcClassicLink.
type DescribeVpcClassicLinkInput struct {
_ struct{} `type:"structure"`
@@ -42629,7 +42651,6 @@ func (s *DescribeVpcClassicLinkInput) SetVpcIds(v []*string) *DescribeVpcClassic
return s
}
-// Contains the output of DescribeVpcClassicLink.
type DescribeVpcClassicLinkOutput struct {
_ struct{} `type:"structure"`
@@ -43310,7 +43331,6 @@ func (s *DescribeVpcEndpointsOutput) SetVpcEndpoints(v []*VpcEndpoint) *Describe
return s
}
-// Contains the parameters for DescribeVpcPeeringConnections.
type DescribeVpcPeeringConnectionsInput struct {
_ struct{} `type:"structure"`
@@ -43392,7 +43412,6 @@ func (s *DescribeVpcPeeringConnectionsInput) SetVpcPeeringConnectionIds(v []*str
return s
}
-// Contains the output of DescribeVpcPeeringConnections.
type DescribeVpcPeeringConnectionsOutput struct {
_ struct{} `type:"structure"`
@@ -43416,7 +43435,6 @@ func (s *DescribeVpcPeeringConnectionsOutput) SetVpcPeeringConnections(v []*VpcP
return s
}
-// Contains the parameters for DescribeVpcs.
type DescribeVpcsInput struct {
_ struct{} `type:"structure"`
@@ -43504,7 +43522,6 @@ func (s *DescribeVpcsInput) SetVpcIds(v []*string) *DescribeVpcsInput {
return s
}
-// Contains the output of DescribeVpcs.
type DescribeVpcsOutput struct {
_ struct{} `type:"structure"`
@@ -43736,7 +43753,6 @@ func (s *DescribeVpnGatewaysOutput) SetVpnGateways(v []*VpnGateway) *DescribeVpn
return s
}
-// Contains the parameters for DetachClassicLinkVpc.
type DetachClassicLinkVpcInput struct {
_ struct{} `type:"structure"`
@@ -43801,7 +43817,6 @@ func (s *DetachClassicLinkVpcInput) SetVpcId(v string) *DetachClassicLinkVpcInpu
return s
}
-// Contains the output of DetachClassicLinkVpc.
type DetachClassicLinkVpcOutput struct {
_ struct{} `type:"structure"`
@@ -43825,7 +43840,6 @@ func (s *DetachClassicLinkVpcOutput) SetReturn(v bool) *DetachClassicLinkVpcOutp
return s
}
-// Contains the parameters for DetachInternetGateway.
type DetachInternetGatewayInput struct {
_ struct{} `type:"structure"`
@@ -44283,7 +44297,6 @@ func (s DisableVgwRoutePropagationOutput) GoString() string {
return s.String()
}
-// Contains the parameters for DisableVpcClassicLinkDnsSupport.
type DisableVpcClassicLinkDnsSupportInput struct {
_ struct{} `type:"structure"`
@@ -44307,7 +44320,6 @@ func (s *DisableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *DisableVpcCla
return s
}
-// Contains the output of DisableVpcClassicLinkDnsSupport.
type DisableVpcClassicLinkDnsSupportOutput struct {
_ struct{} `type:"structure"`
@@ -44331,7 +44343,6 @@ func (s *DisableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *DisableVpcCla
return s
}
-// Contains the parameters for DisableVpcClassicLink.
type DisableVpcClassicLinkInput struct {
_ struct{} `type:"structure"`
@@ -44382,7 +44393,6 @@ func (s *DisableVpcClassicLinkInput) SetVpcId(v string) *DisableVpcClassicLinkIn
return s
}
-// Contains the output of DisableVpcClassicLink.
type DisableVpcClassicLinkOutput struct {
_ struct{} `type:"structure"`
@@ -44526,7 +44536,6 @@ func (s *DisassociateIamInstanceProfileOutput) SetIamInstanceProfileAssociation(
return s
}
-// Contains the parameters for DisassociateRouteTable.
type DisassociateRouteTableInput struct {
_ struct{} `type:"structure"`
@@ -45568,7 +45577,6 @@ func (s EnableVolumeIOOutput) GoString() string {
return s.String()
}
-// Contains the parameters for EnableVpcClassicLinkDnsSupport.
type EnableVpcClassicLinkDnsSupportInput struct {
_ struct{} `type:"structure"`
@@ -45592,7 +45600,6 @@ func (s *EnableVpcClassicLinkDnsSupportInput) SetVpcId(v string) *EnableVpcClass
return s
}
-// Contains the output of EnableVpcClassicLinkDnsSupport.
type EnableVpcClassicLinkDnsSupportOutput struct {
_ struct{} `type:"structure"`
@@ -45616,7 +45623,6 @@ func (s *EnableVpcClassicLinkDnsSupportOutput) SetReturn(v bool) *EnableVpcClass
return s
}
-// Contains the parameters for EnableVpcClassicLink.
type EnableVpcClassicLinkInput struct {
_ struct{} `type:"structure"`
@@ -45667,7 +45673,6 @@ func (s *EnableVpcClassicLinkInput) SetVpcId(v string) *EnableVpcClassicLinkInpu
return s
}
-// Contains the output of EnableVpcClassicLink.
type EnableVpcClassicLinkOutput struct {
_ struct{} `type:"structure"`
@@ -46473,8 +46478,7 @@ type FleetLaunchTemplateSpecification struct {
// or a template ID.
LaunchTemplateName *string `locationName:"launchTemplateName" min:"3" type:"string"`
- // The version number. By default, the default version of the launch template
- // is used.
+ // The version number of the launch template. You must specify a version number.
Version *string `locationName:"version" type:"string"`
}
@@ -49372,7 +49376,6 @@ func (s *ImportInstanceVolumeDetailItem) SetVolume(v *DiskImageVolumeDescription
return s
}
-// Contains the parameters for ImportKeyPair.
type ImportKeyPairInput struct {
_ struct{} `type:"structure"`
@@ -49440,7 +49443,6 @@ func (s *ImportKeyPairInput) SetPublicKeyMaterial(v []byte) *ImportKeyPairInput
return s
}
-// Contains the output of ImportKeyPair.
type ImportKeyPairOutput struct {
_ struct{} `type:"structure"`
@@ -50369,7 +50371,7 @@ func (s *InstanceCount) SetState(v string) *InstanceCount {
return s
}
-// Describes the credit option for CPU usage of a T2 instance.
+// Describes the credit option for CPU usage of a T2 or T3 instance.
type InstanceCreditSpecification struct {
_ struct{} `type:"structure"`
@@ -50403,7 +50405,7 @@ func (s *InstanceCreditSpecification) SetInstanceId(v string) *InstanceCreditSpe
return s
}
-// Describes the credit option for CPU usage of a T2 instance.
+// Describes the credit option for CPU usage of a T2 or T3 instance.
type InstanceCreditSpecificationRequest struct {
_ struct{} `type:"structure"`
@@ -51432,11 +51434,9 @@ type IpPermission struct {
// [EC2-VPC only] One or more IPv6 ranges.
Ipv6Ranges []*Ipv6Range `locationName:"ipv6Ranges" locationNameList:"item" type:"list"`
- // (EC2-VPC only; valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress
- // and DescribeSecurityGroups only) One or more prefix list IDs for an AWS service.
- // In an AuthorizeSecurityGroupEgress request, this is the AWS service that
- // you want to access through a VPC endpoint from instances associated with
- // the security group.
+ // [EC2-VPC only] One or more prefix list IDs for an AWS service. With AuthorizeSecurityGroupEgress,
+ // this is the AWS service that you want to access through a VPC endpoint from
+ // instances associated with the security group.
PrefixListIds []*PrefixListId `locationName:"prefixListIds" locationNameList:"item" type:"list"`
// The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
@@ -53719,7 +53719,6 @@ func (s *ModifyFpgaImageAttributeOutput) SetFpgaImageAttribute(v *FpgaImageAttri
return s
}
-// Contains the parameters for ModifyHosts.
type ModifyHostsInput struct {
_ struct{} `type:"structure"`
@@ -53772,7 +53771,6 @@ func (s *ModifyHostsInput) SetHostIds(v []*string) *ModifyHostsInput {
return s
}
-// Contains the output of ModifyHosts.
type ModifyHostsOutput struct {
_ struct{} `type:"structure"`
@@ -54442,7 +54440,6 @@ func (s *ModifyInstanceCreditSpecificationOutput) SetUnsuccessfulInstanceCreditS
return s
}
-// Contains the parameters for ModifyInstancePlacement.
type ModifyInstancePlacementInput struct {
_ struct{} `type:"structure"`
@@ -54521,7 +54518,6 @@ func (s *ModifyInstancePlacementInput) SetTenancy(v string) *ModifyInstancePlace
return s
}
-// Contains the output of ModifyInstancePlacement.
type ModifyInstancePlacementOutput struct {
_ struct{} `type:"structure"`
@@ -55036,7 +55032,6 @@ func (s *ModifySpotFleetRequestOutput) SetReturn(v bool) *ModifySpotFleetRequest
return s
}
-// Contains the parameters for ModifySubnetAttribute.
type ModifySubnetAttributeInput struct {
_ struct{} `type:"structure"`
@@ -55302,7 +55297,6 @@ func (s *ModifyVolumeOutput) SetVolumeModification(v *VolumeModification) *Modif
return s
}
-// Contains the parameters for ModifyVpcAttribute.
type ModifyVpcAttributeInput struct {
_ struct{} `type:"structure"`
@@ -55839,7 +55833,7 @@ type ModifyVpcPeeringConnectionOptionsInput struct {
// The VPC peering connection options for the accepter VPC.
AccepterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
- // Checks whether you have the required permissions for the operation, without
+ // Checks whether you have the required permissions for the action, without
// actually making the request, and provides an error response. If you have
// the required permissions, the error response is DryRunOperation. Otherwise,
// it is UnauthorizedOperation.
@@ -55933,11 +55927,10 @@ func (s *ModifyVpcPeeringConnectionOptionsOutput) SetRequesterPeeringConnectionO
return s
}
-// Contains the parameters for ModifyVpcTenancy.
type ModifyVpcTenancyInput struct {
_ struct{} `type:"structure"`
- // Checks whether you have the required permissions for the operation, without
+ // Checks whether you have the required permissions for the action, without
// actually making the request, and provides an error response. If you have
// the required permissions, the error response is DryRunOperation. Otherwise,
// it is UnauthorizedOperation.
@@ -55998,7 +55991,6 @@ func (s *ModifyVpcTenancyInput) SetVpcId(v string) *ModifyVpcTenancyInput {
return s
}
-// Contains the output of ModifyVpcTenancy.
type ModifyVpcTenancyOutput struct {
_ struct{} `type:"structure"`
@@ -57342,11 +57334,11 @@ type PeeringConnectionOptions struct {
AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
// If true, enables outbound communication from an EC2-Classic instance that's
- // linked to a local VPC via ClassicLink to instances in a peer VPC.
+ // linked to a local VPC using ClassicLink to instances in a peer VPC.
AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
// If true, enables outbound communication from instances in a local VPC to
- // an EC2-Classic instance that's linked to a peer VPC via ClassicLink.
+ // an EC2-Classic instance that's linked to a peer VPC using ClassicLink.
AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
}
@@ -57387,11 +57379,11 @@ type PeeringConnectionOptionsRequest struct {
AllowDnsResolutionFromRemoteVpc *bool `type:"boolean"`
// If true, enables outbound communication from an EC2-Classic instance that's
- // linked to a local VPC via ClassicLink to instances in a peer VPC.
+ // linked to a local VPC using ClassicLink to instances in a peer VPC.
AllowEgressFromLocalClassicLinkToRemoteVpc *bool `type:"boolean"`
// If true, enables outbound communication from instances in a local VPC to
- // an EC2-Classic instance that's linked to a peer VPC via ClassicLink.
+ // an EC2-Classic instance that's linked to a peer VPC using ClassicLink.
AllowEgressFromLocalVpcToRemoteClassicLink *bool `type:"boolean"`
}
@@ -57613,7 +57605,7 @@ func (s *PrefixList) SetPrefixListName(v string) *PrefixList {
return s
}
-// [EC2-VPC only] The ID of the prefix.
+// Describes a prefix list ID.
type PrefixListId struct {
_ struct{} `type:"structure"`
@@ -58888,7 +58880,6 @@ func (s *RejectVpcEndpointConnectionsOutput) SetUnsuccessful(v []*UnsuccessfulIt
return s
}
-// Contains the parameters for RejectVpcPeeringConnection.
type RejectVpcPeeringConnectionInput struct {
_ struct{} `type:"structure"`
@@ -58939,7 +58930,6 @@ func (s *RejectVpcPeeringConnectionInput) SetVpcPeeringConnectionId(v string) *R
return s
}
-// Contains the output of RejectVpcPeeringConnection.
type RejectVpcPeeringConnectionOutput struct {
_ struct{} `type:"structure"`
@@ -59022,7 +59012,6 @@ func (s ReleaseAddressOutput) GoString() string {
return s.String()
}
-// Contains the parameters for ReleaseHosts.
type ReleaseHostsInput struct {
_ struct{} `type:"structure"`
@@ -59061,7 +59050,6 @@ func (s *ReleaseHostsInput) SetHostIds(v []*string) *ReleaseHostsInput {
return s
}
-// Contains the output of ReleaseHosts.
type ReleaseHostsOutput struct {
_ struct{} `type:"structure"`
@@ -59170,7 +59158,6 @@ func (s *ReplaceIamInstanceProfileAssociationOutput) SetIamInstanceProfileAssoci
return s
}
-// Contains the parameters for ReplaceNetworkAclAssociation.
type ReplaceNetworkAclAssociationInput struct {
_ struct{} `type:"structure"`
@@ -59236,7 +59223,6 @@ func (s *ReplaceNetworkAclAssociationInput) SetNetworkAclId(v string) *ReplaceNe
return s
}
-// Contains the output of ReplaceNetworkAclAssociation.
type ReplaceNetworkAclAssociationOutput struct {
_ struct{} `type:"structure"`
@@ -59260,7 +59246,6 @@ func (s *ReplaceNetworkAclAssociationOutput) SetNewAssociationId(v string) *Repl
return s
}
-// Contains the parameters for ReplaceNetworkAclEntry.
type ReplaceNetworkAclEntryInput struct {
_ struct{} `type:"structure"`
@@ -59427,7 +59412,6 @@ func (s ReplaceNetworkAclEntryOutput) GoString() string {
return s.String()
}
-// Contains the parameters for ReplaceRoute.
type ReplaceRouteInput struct {
_ struct{} `type:"structure"`
@@ -59566,7 +59550,6 @@ func (s ReplaceRouteOutput) GoString() string {
return s.String()
}
-// Contains the parameters for ReplaceRouteTableAssociation.
type ReplaceRouteTableAssociationInput struct {
_ struct{} `type:"structure"`
@@ -59631,7 +59614,6 @@ func (s *ReplaceRouteTableAssociationInput) SetRouteTableId(v string) *ReplaceRo
return s
}
-// Contains the output of ReplaceRouteTableAssociation.
type ReplaceRouteTableAssociationOutput struct {
_ struct{} `type:"structure"`
@@ -59814,7 +59796,8 @@ type RequestLaunchTemplateData struct {
// in the Amazon Elastic Compute Cloud User Guide.
CpuOptions *LaunchTemplateCpuOptionsRequest `type:"structure"`
- // The credit option for CPU usage of the instance. Valid for T2 instances only.
+ // The credit option for CPU usage of the instance. Valid for T2 or T3 instances
+ // only.
CreditSpecification *CreditSpecificationRequest `type:"structure"`
// If set to true, you can't terminate the instance using the Amazon EC2 console,
@@ -62103,7 +62086,6 @@ func (s *RestoreAddressToClassicOutput) SetStatus(v string) *RestoreAddressToCla
return s
}
-// Contains the parameters for RevokeSecurityGroupEgress.
type RevokeSecurityGroupEgressInput struct {
_ struct{} `type:"structure"`
@@ -62235,7 +62217,6 @@ func (s RevokeSecurityGroupEgressOutput) GoString() string {
return s.String()
}
-// Contains the parameters for RevokeSecurityGroupIngress.
type RevokeSecurityGroupIngressInput struct {
_ struct{} `type:"structure"`
@@ -62653,10 +62634,10 @@ type RunInstancesInput struct {
// The credit option for CPU usage of the instance. Valid values are standard
// and unlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification.
- // For more information, see T2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/t2-instances.html)
+ // For more information, see Burstable Performance Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html)
// in the Amazon Elastic Compute Cloud User Guide.
//
- // Default: standard
+ // Default: standard (T2 instances) or unlimited (T3 instances)
CreditSpecification *CreditSpecificationRequest `type:"structure"`
// If you set this parameter to true, you can't terminate the instance using
@@ -67005,7 +66986,7 @@ func (s *SubnetIpv6CidrBlockAssociation) SetIpv6CidrBlockState(v *SubnetCidrBloc
return s
}
-// Describes the T2 instance whose credit option for CPU usage was successfully
+// Describes the T2 or T3 instance whose credit option for CPU usage was successfully
// modified.
type SuccessfulInstanceCreditSpecificationItem struct {
_ struct{} `type:"structure"`
@@ -67037,7 +67018,7 @@ type Tag struct {
// The key of the tag.
//
// Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode
- // characters. May not begin with aws:
+ // characters. May not begin with aws:.
Key *string `locationName:"key" type:"string"`
// The value of the tag.
@@ -67125,8 +67106,8 @@ type TagSpecification struct {
_ struct{} `type:"structure"`
// The type of resource to tag. Currently, the resource types that support tagging
- // on creation are fleet, instance, snapshot, and volume. To tag a resource
- // after it has been created, see CreateTags.
+ // on creation are fleet, dedicated-host, instance, snapshot, and volume. To
+ // tag a resource after it has been created, see CreateTags.
ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
// The tags to apply to the resource.
@@ -67796,12 +67777,13 @@ func (s *UnmonitorInstancesOutput) SetInstanceMonitorings(v []*InstanceMonitorin
return s
}
-// Describes the T2 instance whose credit option for CPU usage was not modified.
+// Describes the T2 or T3 instance whose credit option for CPU usage was not
+// modified.
type UnsuccessfulInstanceCreditSpecificationItem struct {
_ struct{} `type:"structure"`
- // The applicable error for the T2 instance whose credit option for CPU usage
- // was not modified.
+ // The applicable error for the T2 or T3 instance whose credit option for CPU
+ // usage was not modified.
Error *UnsuccessfulInstanceCreditSpecificationItemError `locationName:"error" type:"structure"`
// The ID of the instance.
@@ -67830,8 +67812,8 @@ func (s *UnsuccessfulInstanceCreditSpecificationItem) SetInstanceId(v string) *U
return s
}
-// Information about the error for the T2 instance whose credit option for CPU
-// usage was not modified.
+// Information about the error for the T2 or T3 instance whose credit option
+// for CPU usage was not modified.
type UnsuccessfulInstanceCreditSpecificationItemError struct {
_ struct{} `type:"structure"`
@@ -67937,7 +67919,6 @@ func (s *UnsuccessfulItemError) SetMessage(v string) *UnsuccessfulItemError {
return s
}
-// Contains the parameters for UpdateSecurityGroupRuleDescriptionsEgress.
type UpdateSecurityGroupRuleDescriptionsEgressInput struct {
_ struct{} `type:"structure"`
@@ -68009,7 +67990,6 @@ func (s *UpdateSecurityGroupRuleDescriptionsEgressInput) SetIpPermissions(v []*I
return s
}
-// Contains the output of UpdateSecurityGroupRuleDescriptionsEgress.
type UpdateSecurityGroupRuleDescriptionsEgressOutput struct {
_ struct{} `type:"structure"`
@@ -68033,7 +68013,6 @@ func (s *UpdateSecurityGroupRuleDescriptionsEgressOutput) SetReturn(v bool) *Upd
return s
}
-// Contains the parameters for UpdateSecurityGroupRuleDescriptionsIngress.
type UpdateSecurityGroupRuleDescriptionsIngressInput struct {
_ struct{} `type:"structure"`
@@ -68105,7 +68084,6 @@ func (s *UpdateSecurityGroupRuleDescriptionsIngressInput) SetIpPermissions(v []*
return s
}
-// Contains the output of UpdateSecurityGroupRuleDescriptionsIngress.
type UpdateSecurityGroupRuleDescriptionsIngressOutput struct {
_ struct{} `type:"structure"`
@@ -71073,6 +71051,9 @@ const (
// InstanceTypeF12xlarge is a InstanceType enum value
InstanceTypeF12xlarge = "f1.2xlarge"
+ // InstanceTypeF14xlarge is a InstanceType enum value
+ InstanceTypeF14xlarge = "f1.4xlarge"
+
// InstanceTypeF116xlarge is a InstanceType enum value
InstanceTypeF116xlarge = "f1.16xlarge"
@@ -71517,6 +71498,9 @@ const (
// ResourceTypeCustomerGateway is a ResourceType enum value
ResourceTypeCustomerGateway = "customer-gateway"
+ // ResourceTypeDedicatedHost is a ResourceType enum value
+ ResourceTypeDedicatedHost = "dedicated-host"
+
// ResourceTypeDhcpOptions is a ResourceType enum value
ResourceTypeDhcpOptions = "dhcp-options"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go
index 85f12a98..ddfb5cd5 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/api.go
@@ -4685,6 +4685,92 @@ func (c *SSM) DescribePatchGroupsWithContext(ctx aws.Context, input *DescribePat
return out, req.Send()
}
+const opDescribeSessions = "DescribeSessions"
+
+// DescribeSessionsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeSessions operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfuly.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeSessions for more information on using the DescribeSessions
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeSessionsRequest method.
+// req, resp := client.DescribeSessionsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeSessions
+func (c *SSM) DescribeSessionsRequest(input *DescribeSessionsInput) (req *request.Request, output *DescribeSessionsOutput) {
+ op := &request.Operation{
+ Name: opDescribeSessions,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DescribeSessionsInput{}
+ }
+
+ output = &DescribeSessionsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeSessions API operation for Amazon Simple Systems Manager (SSM).
+//
+// Retrieves a list of all active sessions (both connected and disconnected)
+// or terminated sessions from the past 30 days.
+//
+// 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 Simple Systems Manager (SSM)'s
+// API operation DescribeSessions for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeInternalServerError "InternalServerError"
+// An error occurred on the server side.
+//
+// * ErrCodeInvalidFilterKey "InvalidFilterKey"
+// The specified key is not valid.
+//
+// * ErrCodeInvalidNextToken "InvalidNextToken"
+// The specified token is not valid.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeSessions
+func (c *SSM) DescribeSessions(input *DescribeSessionsInput) (*DescribeSessionsOutput, error) {
+ req, out := c.DescribeSessionsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeSessionsWithContext is the same as DescribeSessions with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeSessions 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 *SSM) DescribeSessionsWithContext(ctx aws.Context, input *DescribeSessionsInput, opts ...request.Option) (*DescribeSessionsOutput, error) {
+ req, out := c.DescribeSessionsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opGetAutomationExecution = "GetAutomationExecution"
// GetAutomationExecutionRequest generates a "aws/request.Request" representing the
@@ -4872,6 +4958,86 @@ func (c *SSM) GetCommandInvocationWithContext(ctx aws.Context, input *GetCommand
return out, req.Send()
}
+const opGetConnectionStatus = "GetConnectionStatus"
+
+// GetConnectionStatusRequest generates a "aws/request.Request" representing the
+// client's request for the GetConnectionStatus operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfuly.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetConnectionStatus for more information on using the GetConnectionStatus
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the GetConnectionStatusRequest method.
+// req, resp := client.GetConnectionStatusRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetConnectionStatus
+func (c *SSM) GetConnectionStatusRequest(input *GetConnectionStatusInput) (req *request.Request, output *GetConnectionStatusOutput) {
+ op := &request.Operation{
+ Name: opGetConnectionStatus,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &GetConnectionStatusInput{}
+ }
+
+ output = &GetConnectionStatusOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetConnectionStatus API operation for Amazon Simple Systems Manager (SSM).
+//
+// Retrieves the Session Manager connection status for an instance to determine
+// whether it is connected and ready to receive Session Manager connections.
+//
+// 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 Simple Systems Manager (SSM)'s
+// API operation GetConnectionStatus for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeInternalServerError "InternalServerError"
+// An error occurred on the server side.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetConnectionStatus
+func (c *SSM) GetConnectionStatus(input *GetConnectionStatusInput) (*GetConnectionStatusOutput, error) {
+ req, out := c.GetConnectionStatusRequest(input)
+ return out, req.Send()
+}
+
+// GetConnectionStatusWithContext is the same as GetConnectionStatus with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetConnectionStatus 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 *SSM) GetConnectionStatusWithContext(ctx aws.Context, input *GetConnectionStatusInput, opts ...request.Option) (*GetConnectionStatusOutput, error) {
+ req, out := c.GetConnectionStatusRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opGetDefaultPatchBaseline = "GetDefaultPatchBaseline"
// GetDefaultPatchBaselineRequest generates a "aws/request.Request" representing the
@@ -8804,6 +8970,96 @@ func (c *SSM) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTa
return out, req.Send()
}
+const opResumeSession = "ResumeSession"
+
+// ResumeSessionRequest generates a "aws/request.Request" representing the
+// client's request for the ResumeSession operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfuly.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ResumeSession for more information on using the ResumeSession
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ResumeSessionRequest method.
+// req, resp := client.ResumeSessionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ResumeSession
+func (c *SSM) ResumeSessionRequest(input *ResumeSessionInput) (req *request.Request, output *ResumeSessionOutput) {
+ op := &request.Operation{
+ Name: opResumeSession,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ResumeSessionInput{}
+ }
+
+ output = &ResumeSessionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ResumeSession API operation for Amazon Simple Systems Manager (SSM).
+//
+// Reconnects a session to an instance after it has been disconnected. Connections
+// can be resumed for disconnected sessions, but not terminated sessions.
+//
+// This command is primarily for use by client machines to automatically reconnect
+// during intermittent network issues. It is not intended for any other use.
+//
+// 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 Simple Systems Manager (SSM)'s
+// API operation ResumeSession for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeDoesNotExistException "DoesNotExistException"
+// Error returned when the ID specified for a resource, such as a Maintenance
+// Window or Patch baseline, doesn't exist.
+//
+// For information about resource limits in Systems Manager, see AWS Systems
+// Manager Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_ssm).
+//
+// * ErrCodeInternalServerError "InternalServerError"
+// An error occurred on the server side.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ResumeSession
+func (c *SSM) ResumeSession(input *ResumeSessionInput) (*ResumeSessionOutput, error) {
+ req, out := c.ResumeSessionRequest(input)
+ return out, req.Send()
+}
+
+// ResumeSessionWithContext is the same as ResumeSession with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ResumeSession 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 *SSM) ResumeSessionWithContext(ctx aws.Context, input *ResumeSessionInput, opts ...request.Option) (*ResumeSessionOutput, error) {
+ req, out := c.ResumeSessionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opSendAutomationSignal = "SendAutomationSignal"
// SendAutomationSignalRequest generates a "aws/request.Request" representing the
@@ -9209,6 +9465,102 @@ func (c *SSM) StartAutomationExecutionWithContext(ctx aws.Context, input *StartA
return out, req.Send()
}
+const opStartSession = "StartSession"
+
+// StartSessionRequest generates a "aws/request.Request" representing the
+// client's request for the StartSession operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfuly.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See StartSession for more information on using the StartSession
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the StartSessionRequest method.
+// req, resp := client.StartSessionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StartSession
+func (c *SSM) StartSessionRequest(input *StartSessionInput) (req *request.Request, output *StartSessionOutput) {
+ op := &request.Operation{
+ Name: opStartSession,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &StartSessionInput{}
+ }
+
+ output = &StartSessionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// StartSession API operation for Amazon Simple Systems Manager (SSM).
+//
+// Initiates a connection to a target (for example, an instance) for a Session
+// Manager session. Returns a URL and token that can be used to open a WebSocket
+// connection for sending input and receiving outputs.
+//
+// AWS CLI usage: start-session is an interactive command that requires the
+// Session Manager plugin to be installed on the client machine making the call.
+// For information, see Install the Session Manager Plugin for the AWS CLI
+// (http://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html)
+// in the AWS Systems Manager User 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 Amazon Simple Systems Manager (SSM)'s
+// API operation StartSession for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeInvalidDocument "InvalidDocument"
+// The specified document does not exist.
+//
+// * ErrCodeTargetNotConnected "TargetNotConnected"
+// The specified target instance for the session is not fully configured for
+// use with Session Manager. For more information, see Getting Started with
+// Session Manager (http://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html)
+// in the AWS Systems Manager User Guide.
+//
+// * ErrCodeInternalServerError "InternalServerError"
+// An error occurred on the server side.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StartSession
+func (c *SSM) StartSession(input *StartSessionInput) (*StartSessionOutput, error) {
+ req, out := c.StartSessionRequest(input)
+ return out, req.Send()
+}
+
+// StartSessionWithContext is the same as StartSession with the addition of
+// the ability to pass a context and additional request options.
+//
+// See StartSession 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 *SSM) StartSessionWithContext(ctx aws.Context, input *StartSessionInput, opts ...request.Option) (*StartSessionOutput, error) {
+ req, out := c.StartSessionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opStopAutomationExecution = "StopAutomationExecution"
// StopAutomationExecutionRequest generates a "aws/request.Request" representing the
@@ -9295,6 +9647,94 @@ func (c *SSM) StopAutomationExecutionWithContext(ctx aws.Context, input *StopAut
return out, req.Send()
}
+const opTerminateSession = "TerminateSession"
+
+// TerminateSessionRequest generates a "aws/request.Request" representing the
+// client's request for the TerminateSession operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfuly.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See TerminateSession for more information on using the TerminateSession
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the TerminateSessionRequest method.
+// req, resp := client.TerminateSessionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/TerminateSession
+func (c *SSM) TerminateSessionRequest(input *TerminateSessionInput) (req *request.Request, output *TerminateSessionOutput) {
+ op := &request.Operation{
+ Name: opTerminateSession,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &TerminateSessionInput{}
+ }
+
+ output = &TerminateSessionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// TerminateSession API operation for Amazon Simple Systems Manager (SSM).
+//
+// Permanently ends a session and closes the data connection between the Session
+// Manager client and SSM Agent on the instance. A terminated session cannot
+// be resumed.
+//
+// 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 Simple Systems Manager (SSM)'s
+// API operation TerminateSession for usage and error information.
+//
+// Returned Error Codes:
+// * ErrCodeDoesNotExistException "DoesNotExistException"
+// Error returned when the ID specified for a resource, such as a Maintenance
+// Window or Patch baseline, doesn't exist.
+//
+// For information about resource limits in Systems Manager, see AWS Systems
+// Manager Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_ssm).
+//
+// * ErrCodeInternalServerError "InternalServerError"
+// An error occurred on the server side.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/TerminateSession
+func (c *SSM) TerminateSession(input *TerminateSessionInput) (*TerminateSessionOutput, error) {
+ req, out := c.TerminateSessionRequest(input)
+ return out, req.Send()
+}
+
+// TerminateSessionWithContext is the same as TerminateSession with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TerminateSession 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 *SSM) TerminateSessionWithContext(ctx aws.Context, input *TerminateSessionInput, opts ...request.Option) (*TerminateSessionOutput, error) {
+ req, out := c.TerminateSessionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opUpdateAssociation = "UpdateAssociation"
// UpdateAssociationRequest generates a "aws/request.Request" representing the
@@ -12168,7 +12608,44 @@ type CommandFilter struct {
// Key is a required field
Key *string `locationName:"key" type:"string" required:"true" enum:"CommandFilterKey"`
- // The filter value.
+ // The filter value. Valid values for each filter key are as follows:
+ //
+ // * InvokedAfter: A timestamp to limit your results. For example, specify
+ // 2018-07-07T00:00:00Z to see results occurring July 7, 2018, and later.
+ //
+ // * InvokedBefore: A timestamp to limit your results. For example, specify
+ // 2018-07-07T00:00:00Z to see results before July 7, 2018.
+ //
+ // * Status: Specify a valid command status to see a list of all command
+ // executions with that status. Status values you can specify include:
+ //
+ // Pending
+ //
+ // InProgress
+ //
+ // Success
+ //
+ // Cancelled
+ //
+ // Failed
+ //
+ // TimedOut
+ //
+ // Cancelling
+ //
+ // * DocumentName: The name of the SSM document for which you want to see
+ // command results.
+ //
+ // For example, specify AWS-RunPatchBaseline to see command executions that
+ // used this SSM document to perform security patching operations on instances.
+ //
+ //
+ // * ExecutionStage: An enum whose value can be either Executing or Complete.
+ //
+ // Specify Executing to see a list of command executions that are currently
+ // still running.
+ //
+ // Specify Complete to see a list of command exeuctions that have already completed.
//
// Value is a required field
Value *string `locationName:"value" min:"1" type:"string" required:"true"`
@@ -16200,7 +16677,14 @@ type DescribeInstanceInformationInput struct {
// One or more filters. Use a filter to return a more specific list of instances.
Filters []*InstanceInformationStringFilter `type:"list"`
- // One or more filters. Use a filter to return a more specific list of instances.
+ // This is a legacy method. We recommend that you don't use this method. Instead,
+ // use the InstanceInformationFilter action. The InstanceInformationFilter action
+ // enables you to return instance information by using tags that are specified
+ // as a key-value mapping.
+ //
+ // If you do use this method, then you can't use the InstanceInformationFilter
+ // action. Using this method and the InstanceInformationFilter action causes
+ // an exception error.
InstanceInformationFilterList []*InstanceInformationFilter `type:"list"`
// The maximum number of items to return for this call. The call also returns
@@ -17901,6 +18385,123 @@ func (s *DescribePatchGroupsOutput) SetNextToken(v string) *DescribePatchGroupsO
return s
}
+type DescribeSessionsInput struct {
+ _ struct{} `type:"structure"`
+
+ // One or more filters to limit the type of sessions returned by the request.
+ Filters []*SessionFilter `min:"1" type:"list"`
+
+ // The maximum number of items to return for this call. The call also returns
+ // a token that you can specify in a subsequent call to get the next set of
+ // results.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token for the next set of items to return. (You received this token from
+ // a previous call.)
+ NextToken *string `type:"string"`
+
+ // The session status to retrieve a list of sessions for. For example, "active".
+ //
+ // State is a required field
+ State *string `type:"string" required:"true" enum:"SessionState"`
+}
+
+// String returns the string representation
+func (s DescribeSessionsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeSessionsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeSessionsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeSessionsInput"}
+ if s.Filters != nil && len(s.Filters) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Filters", 1))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.State == nil {
+ invalidParams.Add(request.NewErrParamRequired("State"))
+ }
+ if s.Filters != nil {
+ for i, v := range s.Filters {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFilters sets the Filters field's value.
+func (s *DescribeSessionsInput) SetFilters(v []*SessionFilter) *DescribeSessionsInput {
+ s.Filters = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeSessionsInput) SetMaxResults(v int64) *DescribeSessionsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeSessionsInput) SetNextToken(v string) *DescribeSessionsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetState sets the State field's value.
+func (s *DescribeSessionsInput) SetState(v string) *DescribeSessionsInput {
+ s.State = &v
+ return s
+}
+
+type DescribeSessionsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token for the next set of items to return. (You received this token from
+ // a previous call.)
+ NextToken *string `type:"string"`
+
+ // A list of sessions meeting the request parameters.
+ Sessions []*Session `type:"list"`
+}
+
+// String returns the string representation
+func (s DescribeSessionsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeSessionsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeSessionsOutput) SetNextToken(v string) *DescribeSessionsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetSessions sets the Sessions field's value.
+func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutput {
+ s.Sessions = v
+ return s
+}
+
// A default version of a document.
type DocumentDefaultVersionDescription struct {
_ struct{} `type:"structure"`
@@ -18957,6 +19558,80 @@ func (s *GetCommandInvocationOutput) SetStatusDetails(v string) *GetCommandInvoc
return s
}
+type GetConnectionStatusInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the instance.
+ //
+ // Target is a required field
+ Target *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s GetConnectionStatusInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetConnectionStatusInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetConnectionStatusInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetConnectionStatusInput"}
+ if s.Target == nil {
+ invalidParams.Add(request.NewErrParamRequired("Target"))
+ }
+ if s.Target != nil && len(*s.Target) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Target", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetTarget sets the Target field's value.
+func (s *GetConnectionStatusInput) SetTarget(v string) *GetConnectionStatusInput {
+ s.Target = &v
+ return s
+}
+
+type GetConnectionStatusOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The status of the connection to the instance. For example, 'Connected' or
+ // 'Not Connected'.
+ Status *string `type:"string" enum:"ConnectionStatus"`
+
+ // The ID of the instance to check connection status.
+ Target *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s GetConnectionStatusOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetConnectionStatusOutput) GoString() string {
+ return s.String()
+}
+
+// SetStatus sets the Status field's value.
+func (s *GetConnectionStatusOutput) SetStatus(v string) *GetConnectionStatusOutput {
+ s.Status = &v
+ return s
+}
+
+// SetTarget sets the Target field's value.
+func (s *GetConnectionStatusOutput) SetTarget(v string) *GetConnectionStatusOutput {
+ s.Target = &v
+ return s
+}
+
type GetDefaultPatchBaselineInput struct {
_ struct{} `type:"structure"`
@@ -21517,7 +22192,12 @@ func (s *InstanceInformation) SetResourceType(v string) *InstanceInformation {
return s
}
-// Describes a filter for a specific list of instances.
+// Describes a filter for a specific list of instances. You can filter instances
+// information by using tags. You specify tags by using a key-value mapping.
+//
+// Use this action instead of the DescribeInstanceInformationRequest$InstanceInformationFilterList
+// method. The InstanceInformationFilterList method is a legacy method and does
+// not support tags.
type InstanceInformationFilter struct {
_ struct{} `type:"structure"`
@@ -28358,6 +29038,98 @@ func (s *ResultAttribute) SetTypeName(v string) *ResultAttribute {
return s
}
+type ResumeSessionInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the disconnected session to resume.
+ //
+ // SessionId is a required field
+ SessionId *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s ResumeSessionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ResumeSessionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ResumeSessionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ResumeSessionInput"}
+ if s.SessionId == nil {
+ invalidParams.Add(request.NewErrParamRequired("SessionId"))
+ }
+ if s.SessionId != nil && len(*s.SessionId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetSessionId sets the SessionId field's value.
+func (s *ResumeSessionInput) SetSessionId(v string) *ResumeSessionInput {
+ s.SessionId = &v
+ return s
+}
+
+type ResumeSessionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the session.
+ SessionId *string `min:"1" type:"string"`
+
+ // A URL back to SSM Agent on the instance that the Session Manager client uses
+ // to send commands and receive output from the instance. Format: wss://ssm-messages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output).
+ //
+ // region represents the Region identifier for an AWS Region supported by AWS
+ // Systems Manager, such as us-east-2 for the US East (Ohio) Region. For a list
+ // of supported region values, see the Region column in the AWS Systems Manager
+ // table of regions and endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#ssm_region)
+ // in the AWS General Reference.
+ //
+ // session-id represents the ID of a Session Manager session, such as 1a2b3c4dEXAMPLE.
+ StreamUrl *string `type:"string"`
+
+ // An encrypted token value containing session and caller information. Used
+ // to authenticate the connection to the instance.
+ TokenValue *string `type:"string"`
+}
+
+// String returns the string representation
+func (s ResumeSessionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ResumeSessionOutput) GoString() string {
+ return s.String()
+}
+
+// SetSessionId sets the SessionId field's value.
+func (s *ResumeSessionOutput) SetSessionId(v string) *ResumeSessionOutput {
+ s.SessionId = &v
+ return s
+}
+
+// SetStreamUrl sets the StreamUrl field's value.
+func (s *ResumeSessionOutput) SetStreamUrl(v string) *ResumeSessionOutput {
+ s.StreamUrl = &v
+ return s
+}
+
+// SetTokenValue sets the TokenValue field's value.
+func (s *ResumeSessionOutput) SetTokenValue(v string) *ResumeSessionOutput {
+ s.TokenValue = &v
+ return s
+}
+
// An Amazon S3 bucket where you want to store the results of this request.
type S3OutputLocation struct {
_ struct{} `type:"structure"`
@@ -28802,6 +29574,220 @@ func (s *SendCommandOutput) SetCommand(v *Command) *SendCommandOutput {
return s
}
+// Information about a Session Manager connection to an instance.
+type Session struct {
+ _ struct{} `type:"structure"`
+
+ // Reserved for future use.
+ Details *string `min:"1" type:"string"`
+
+ // The name of the Session Manager SSM document used to define the parameters
+ // and plugin settings for the session. For example, SSM-SessionManagerRunShell.
+ DocumentName *string `type:"string"`
+
+ // The date and time, in ISO-8601 Extended format, when the session was terminated.
+ EndDate *time.Time `type:"timestamp"`
+
+ // Reserved for future use.
+ OutputUrl *SessionManagerOutputUrl `type:"structure"`
+
+ // The ID of the AWS user account that started the session.
+ Owner *string `min:"1" type:"string"`
+
+ // The ID of the session.
+ SessionId *string `min:"1" type:"string"`
+
+ // The date and time, in ISO-8601 Extended format, when the session began.
+ StartDate *time.Time `type:"timestamp"`
+
+ // The status of the session. For example, "Connected" or "Terminated".
+ Status *string `type:"string" enum:"SessionStatus"`
+
+ // The instance that the Session Manager session connected to.
+ Target *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s Session) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s Session) GoString() string {
+ return s.String()
+}
+
+// SetDetails sets the Details field's value.
+func (s *Session) SetDetails(v string) *Session {
+ s.Details = &v
+ return s
+}
+
+// SetDocumentName sets the DocumentName field's value.
+func (s *Session) SetDocumentName(v string) *Session {
+ s.DocumentName = &v
+ return s
+}
+
+// SetEndDate sets the EndDate field's value.
+func (s *Session) SetEndDate(v time.Time) *Session {
+ s.EndDate = &v
+ return s
+}
+
+// SetOutputUrl sets the OutputUrl field's value.
+func (s *Session) SetOutputUrl(v *SessionManagerOutputUrl) *Session {
+ s.OutputUrl = v
+ return s
+}
+
+// SetOwner sets the Owner field's value.
+func (s *Session) SetOwner(v string) *Session {
+ s.Owner = &v
+ return s
+}
+
+// SetSessionId sets the SessionId field's value.
+func (s *Session) SetSessionId(v string) *Session {
+ s.SessionId = &v
+ return s
+}
+
+// SetStartDate sets the StartDate field's value.
+func (s *Session) SetStartDate(v time.Time) *Session {
+ s.StartDate = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *Session) SetStatus(v string) *Session {
+ s.Status = &v
+ return s
+}
+
+// SetTarget sets the Target field's value.
+func (s *Session) SetTarget(v string) *Session {
+ s.Target = &v
+ return s
+}
+
+// Describes a filter for Session Manager information.
+type SessionFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the filter.
+ //
+ // Key is a required field
+ Key *string `locationName:"key" type:"string" required:"true" enum:"SessionFilterKey"`
+
+ // The filter value. Valid values for each filter key are as follows:
+ //
+ // * InvokedAfter: Specify a timestamp to limit your results. For example,
+ // specify 2018-08-29T00:00:00Z to see sessions that started August 29, 2018,
+ // and later.
+ //
+ // * InvokedBefore: Specify a timestamp to limit your results. For example,
+ // specify 2018-08-29T00:00:00Z to see sessions that started before August
+ // 29, 2018.
+ //
+ // * Target: Specify an instance to which session connections have been made.
+ //
+ // * Owner: Specify an AWS user account to see a list of sessions started
+ // by that user.
+ //
+ // * Status: Specify a valid session status to see a list of all sessions
+ // with that status. Status values you can specify include:
+ //
+ // Connected
+ //
+ // Connecting
+ //
+ // Disconnected
+ //
+ // Terminated
+ //
+ // Terminating
+ //
+ // Failed
+ //
+ // Value is a required field
+ Value *string `locationName:"value" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s SessionFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s SessionFilter) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SessionFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SessionFilter"}
+ if s.Key == nil {
+ invalidParams.Add(request.NewErrParamRequired("Key"))
+ }
+ if s.Value == nil {
+ invalidParams.Add(request.NewErrParamRequired("Value"))
+ }
+ if s.Value != nil && len(*s.Value) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Value", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetKey sets the Key field's value.
+func (s *SessionFilter) SetKey(v string) *SessionFilter {
+ s.Key = &v
+ return s
+}
+
+// SetValue sets the Value field's value.
+func (s *SessionFilter) SetValue(v string) *SessionFilter {
+ s.Value = &v
+ return s
+}
+
+// Reserved for future use.
+type SessionManagerOutputUrl struct {
+ _ struct{} `type:"structure"`
+
+ // Reserved for future use.
+ CloudWatchOutputUrl *string `min:"1" type:"string"`
+
+ // Reserved for future use.
+ S3OutputUrl *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s SessionManagerOutputUrl) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s SessionManagerOutputUrl) GoString() string {
+ return s.String()
+}
+
+// SetCloudWatchOutputUrl sets the CloudWatchOutputUrl field's value.
+func (s *SessionManagerOutputUrl) SetCloudWatchOutputUrl(v string) *SessionManagerOutputUrl {
+ s.CloudWatchOutputUrl = &v
+ return s
+}
+
+// SetS3OutputUrl sets the S3OutputUrl field's value.
+func (s *SessionManagerOutputUrl) SetS3OutputUrl(v string) *SessionManagerOutputUrl {
+ s.S3OutputUrl = &v
+ return s
+}
+
// The number of managed instances found for each patch severity level defined
// in the request filter.
type SeveritySummary struct {
@@ -29126,6 +30112,118 @@ func (s *StartAutomationExecutionOutput) SetAutomationExecutionId(v string) *Sta
return s
}
+type StartSessionInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the SSM document to define the parameters and plugin settings
+ // for the session. For example, SSM-SessionManagerRunShell. If no document
+ // name is provided, a shell to the instance is launched by default.
+ DocumentName *string `type:"string"`
+
+ // Reserved for future use.
+ Parameters map[string][]*string `type:"map"`
+
+ // The instance to connect to for the session.
+ //
+ // Target is a required field
+ Target *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s StartSessionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s StartSessionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *StartSessionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "StartSessionInput"}
+ if s.Target == nil {
+ invalidParams.Add(request.NewErrParamRequired("Target"))
+ }
+ if s.Target != nil && len(*s.Target) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Target", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDocumentName sets the DocumentName field's value.
+func (s *StartSessionInput) SetDocumentName(v string) *StartSessionInput {
+ s.DocumentName = &v
+ return s
+}
+
+// SetParameters sets the Parameters field's value.
+func (s *StartSessionInput) SetParameters(v map[string][]*string) *StartSessionInput {
+ s.Parameters = v
+ return s
+}
+
+// SetTarget sets the Target field's value.
+func (s *StartSessionInput) SetTarget(v string) *StartSessionInput {
+ s.Target = &v
+ return s
+}
+
+type StartSessionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the session.
+ SessionId *string `min:"1" type:"string"`
+
+ // A URL back to SSM Agent on the instance that the Session Manager client uses
+ // to send commands and receive output from the instance. Format: wss://ssm-messages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output)
+ //
+ // region represents the Region identifier for an AWS Region supported by AWS
+ // Systems Manager, such as us-east-2 for the US East (Ohio) Region. For a list
+ // of supported region values, see the Region column in the AWS Systems Manager
+ // table of regions and endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#ssm_region)
+ // in the AWS General Reference.
+ //
+ // session-id represents the ID of a Session Manager session, such as 1a2b3c4dEXAMPLE.
+ StreamUrl *string `type:"string"`
+
+ // An encrypted token value containing session and caller information. Used
+ // to authenticate the connection to the instance.
+ TokenValue *string `type:"string"`
+}
+
+// String returns the string representation
+func (s StartSessionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s StartSessionOutput) GoString() string {
+ return s.String()
+}
+
+// SetSessionId sets the SessionId field's value.
+func (s *StartSessionOutput) SetSessionId(v string) *StartSessionOutput {
+ s.SessionId = &v
+ return s
+}
+
+// SetStreamUrl sets the StreamUrl field's value.
+func (s *StartSessionOutput) SetStreamUrl(v string) *StartSessionOutput {
+ s.StreamUrl = &v
+ return s
+}
+
+// SetTokenValue sets the TokenValue field's value.
+func (s *StartSessionOutput) SetTokenValue(v string) *StartSessionOutput {
+ s.TokenValue = &v
+ return s
+}
+
// Detailed information about an the execution state of an Automation step.
type StepExecution struct {
_ struct{} `type:"structure"`
@@ -29575,6 +30673,70 @@ func (s *Target) SetValues(v []*string) *Target {
return s
}
+type TerminateSessionInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the session to terminate.
+ //
+ // SessionId is a required field
+ SessionId *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s TerminateSessionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TerminateSessionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TerminateSessionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TerminateSessionInput"}
+ if s.SessionId == nil {
+ invalidParams.Add(request.NewErrParamRequired("SessionId"))
+ }
+ if s.SessionId != nil && len(*s.SessionId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SessionId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetSessionId sets the SessionId field's value.
+func (s *TerminateSessionInput) SetSessionId(v string) *TerminateSessionInput {
+ s.SessionId = &v
+ return s
+}
+
+type TerminateSessionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ID of the session that has been terminated.
+ SessionId *string `min:"1" type:"string"`
+}
+
+// String returns the string representation
+func (s TerminateSessionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s TerminateSessionOutput) GoString() string {
+ return s.String()
+}
+
+// SetSessionId sets the SessionId field's value.
+func (s *TerminateSessionOutput) SetSessionId(v string) *TerminateSessionOutput {
+ s.SessionId = &v
+ return s
+}
+
type UpdateAssociationInput struct {
_ struct{} `type:"structure"`
@@ -31415,6 +32577,14 @@ const (
)
const (
+ // ConnectionStatusConnected is a ConnectionStatus enum value
+ ConnectionStatusConnected = "Connected"
+
+ // ConnectionStatusNotConnected is a ConnectionStatus enum value
+ ConnectionStatusNotConnected = "NotConnected"
+)
+
+const (
// DescribeActivationsFilterKeysActivationIds is a DescribeActivationsFilterKeys enum value
DescribeActivationsFilterKeysActivationIds = "ActivationIds"
@@ -31491,6 +32661,9 @@ const (
// DocumentTypeAutomation is a DocumentType enum value
DocumentTypeAutomation = "Automation"
+
+ // DocumentTypeSession is a DocumentType enum value
+ DocumentTypeSession = "Session"
)
const (
@@ -31860,6 +33033,51 @@ const (
)
const (
+ // SessionFilterKeyInvokedAfter is a SessionFilterKey enum value
+ SessionFilterKeyInvokedAfter = "InvokedAfter"
+
+ // SessionFilterKeyInvokedBefore is a SessionFilterKey enum value
+ SessionFilterKeyInvokedBefore = "InvokedBefore"
+
+ // SessionFilterKeyTarget is a SessionFilterKey enum value
+ SessionFilterKeyTarget = "Target"
+
+ // SessionFilterKeyOwner is a SessionFilterKey enum value
+ SessionFilterKeyOwner = "Owner"
+
+ // SessionFilterKeyStatus is a SessionFilterKey enum value
+ SessionFilterKeyStatus = "Status"
+)
+
+const (
+ // SessionStateActive is a SessionState enum value
+ SessionStateActive = "Active"
+
+ // SessionStateHistory is a SessionState enum value
+ SessionStateHistory = "History"
+)
+
+const (
+ // SessionStatusConnected is a SessionStatus enum value
+ SessionStatusConnected = "Connected"
+
+ // SessionStatusConnecting is a SessionStatus enum value
+ SessionStatusConnecting = "Connecting"
+
+ // SessionStatusDisconnected is a SessionStatus enum value
+ SessionStatusDisconnected = "Disconnected"
+
+ // SessionStatusTerminated is a SessionStatus enum value
+ SessionStatusTerminated = "Terminated"
+
+ // SessionStatusTerminating is a SessionStatus enum value
+ SessionStatusTerminating = "Terminating"
+
+ // SessionStatusFailed is a SessionStatus enum value
+ SessionStatusFailed = "Failed"
+)
+
+const (
// SignalTypeApprove is a SignalType enum value
SignalTypeApprove = "Approve"
diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/errors.go
index 0c4e6ceb..da7ff9e6 100644
--- a/vendor/github.com/aws/aws-sdk-go/service/ssm/errors.go
+++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/errors.go
@@ -610,6 +610,15 @@ const (
// operation, but the target is still referenced in a task.
ErrCodeTargetInUseException = "TargetInUseException"
+ // ErrCodeTargetNotConnected for service response error code
+ // "TargetNotConnected".
+ //
+ // The specified target instance for the session is not fully configured for
+ // use with Session Manager. For more information, see Getting Started with
+ // Session Manager (http://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html)
+ // in the AWS Systems Manager User Guide.
+ ErrCodeTargetNotConnected = "TargetNotConnected"
+
// ErrCodeTooManyTagsError for service response error code
// "TooManyTagsError".
//
diff --git a/vendor/github.com/hashicorp/consul/api/agent.go b/vendor/github.com/hashicorp/consul/api/agent.go
index 8cb81fc8..41505e76 100644
--- a/vendor/github.com/hashicorp/consul/api/agent.go
+++ b/vendor/github.com/hashicorp/consul/api/agent.go
@@ -51,6 +51,12 @@ type AgentCheck struct {
Definition HealthCheckDefinition
}
+// AgentWeights represent optional weights for a service
+type AgentWeights struct {
+ Passing int
+ Warning int
+}
+
// AgentService represents a service known to the agent
type AgentService struct {
Kind ServiceKind
@@ -60,6 +66,7 @@ type AgentService struct {
Meta map[string]string
Port int
Address string
+ Weights AgentWeights
EnableTagOverride bool
CreateIndex uint64
ModifyIndex uint64
@@ -119,6 +126,7 @@ type AgentServiceRegistration struct {
Address string `json:",omitempty"`
EnableTagOverride bool `json:",omitempty"`
Meta map[string]string `json:",omitempty"`
+ Weights *AgentWeights `json:",omitempty"`
Check *AgentServiceCheck
Checks AgentServiceChecks
ProxyDestination string `json:",omitempty"`
diff --git a/vendor/github.com/hashicorp/consul/api/catalog.go b/vendor/github.com/hashicorp/consul/api/catalog.go
index 1a6bbc3b..6cb745c3 100644
--- a/vendor/github.com/hashicorp/consul/api/catalog.go
+++ b/vendor/github.com/hashicorp/consul/api/catalog.go
@@ -1,5 +1,10 @@
package api
+type Weights struct {
+ Passing int
+ Warning int
+}
+
type Node struct {
ID string
Node string
@@ -24,6 +29,7 @@ type CatalogService struct {
ServiceTags []string
ServiceMeta map[string]string
ServicePort int
+ ServiceWeights Weights
ServiceEnableTagOverride bool
CreateIndex uint64
ModifyIndex uint64
diff --git a/vendor/github.com/hashicorp/consul/api/operator_area.go b/vendor/github.com/hashicorp/consul/api/operator_area.go
index a630b694..5cf7e497 100644
--- a/vendor/github.com/hashicorp/consul/api/operator_area.go
+++ b/vendor/github.com/hashicorp/consul/api/operator_area.go
@@ -1,9 +1,10 @@
+package api
+
// The /v1/operator/area endpoints are available only in Consul Enterprise and
// interact with its network area subsystem. Network areas are used to link
// together Consul servers in different Consul datacenters. With network areas,
// Consul datacenters can be linked together in ways other than a fully-connected
// mesh, as is required for Consul's WAN.
-package api
import (
"net"
diff --git a/vendor/github.com/hashicorp/consul/ui-v2/app/styles/components/notice.scss b/vendor/github.com/hashicorp/consul/ui-v2/app/styles/components/notice.scss
index ec4d63d5..e7b986db 100644
--- a/vendor/github.com/hashicorp/consul/ui-v2/app/styles/components/notice.scss
+++ b/vendor/github.com/hashicorp/consul/ui-v2/app/styles/components/notice.scss
@@ -1,24 +1,4 @@
-.notice {
- @extend %notice;
-}
-%notice {
- @extend %with-warning;
-}
-%notice::before {
- left: 20px;
- top: 18px;
- margin-top: 0;
-}
-%notice {
- border: 1px solid;
- border-radius: $radius-small;
-}
-%notice.warning {
- background-color: $yellow-050;
- border-color: $yellow-500;
-}
-%notice {
- position: relative;
- padding: 1em;
- padding-left: 45px;
+@import './notice/index';
+.notice.warning {
+ @extend %notice-warning;
}
diff --git a/vendor/github.com/hashicorp/consul/website/source/api/operator/license.html.md b/vendor/github.com/hashicorp/consul/website/source/api/operator/license.html.md
index c0e046e7..2908c4ba 100644
--- a/vendor/github.com/hashicorp/consul/website/source/api/operator/license.html.md
+++ b/vendor/github.com/hashicorp/consul/website/source/api/operator/license.html.md
@@ -9,7 +9,7 @@ description: |-
# License - Operator HTTP API
-~> **Enterprise Only!** This API endpoint and functionality only exists in
+~> **Enterprise Only!** This API endpoint and functionality only exists in
Consul Enterprise. This is not present in the open source version of Consul.
The licensing functionality described here is available only in
@@ -34,15 +34,15 @@ The table below shows this endpoint's support for
### Parameters
-- `dc` `(string: "")` - Specifies the datacenter whose license should be retrieved.
- This will default to the datacenter of the agent serving the HTTP request.
+- `dc` `(string: "")` - Specifies the datacenter whose license should be retrieved.
+ This will default to the datacenter of the agent serving the HTTP request.
This is specified as a URL query parameter.
-
+
### Sample Request
```text
$ curl \
- https://consul.rocks/v1/operator/license
+ http://127.0.0.1:8500/v1/operator/license
```
### Sample Response
@@ -77,7 +77,7 @@ $ curl \
## Updating the Consul License
-This endpoint updates the Consul license and returns some of the
+This endpoint updates the Consul license and returns some of the
license contents as well as any warning messages regarding its validity.
| Method | Path | Produces |
@@ -95,21 +95,21 @@ The table below shows this endpoint's support for
### Parameters
-- `dc` `(string: "")` - Specifies the datacenter whose license should be updated.
- This will default to the datacenter of the agent serving the HTTP request.
+- `dc` `(string: "")` - Specifies the datacenter whose license should be updated.
+ This will default to the datacenter of the agent serving the HTTP request.
This is specified as a URL query parameter.
-
+
### Sample Payload
The payload is the raw license blob.
-### Sample Request
+### Sample Request
```text
$ curl \
--request PUT \
--data @consul.license \
- https://consul.rocks/v1/operator/license
+ http://127.0.0.1:8500/v1/operator/license
```
### Sample Response